Changeset 147766 in webkit


Ignore:
Timestamp:
Apr 5, 2013 11:18:49 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Remove WTF_USE_GOOGLEURL-guarded code
https://bugs.webkit.org/show_bug.cgi?id=114028

Patch by Zan Dobersek <zdobersek@igalia.com> on 2013-04-05
Reviewed by Ryosuke Niwa.

Source/WebCore:

The only remaining usage of the USE(GOOGLEURL) guards is in LinkHashChromium.cpp that will
get removed when purging the Source/WebCore/platform/chromium directory.

  • config.h: Remove the define that was Chromium-specific.
  • platform/KURL.cpp:

(WebCore):
(WebCore::KURL::reportMemoryUsage):
(WebCore::KURL::isSafeToSendToAnotherThread):

  • platform/KURL.h:

(KURL):

  • platform/KURLGoogle.cpp: Removed.
  • platform/KURLGooglePrivate.h: Removed.

Source/WebKit/blackberry:

  • WebCoreSupport/AboutDataUseFeatures.in: Remove GOOGLEURL from the list.
Location:
trunk/Source
Files:
2 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r147765 r147766  
     12013-04-05  Zan Dobersek  <zdobersek@igalia.com>
     2
     3        Remove WTF_USE_GOOGLEURL-guarded code
     4        https://bugs.webkit.org/show_bug.cgi?id=114028
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        The only remaining usage of the USE(GOOGLEURL) guards is in LinkHashChromium.cpp that will
     9        get removed when purging the Source/WebCore/platform/chromium directory.
     10
     11        * config.h: Remove the define that was Chromium-specific.
     12        * platform/KURL.cpp:
     13        (WebCore):
     14        (WebCore::KURL::reportMemoryUsage):
     15        (WebCore::KURL::isSafeToSendToAnotherThread):
     16        * platform/KURL.h:
     17        (KURL):
     18        * platform/KURLGoogle.cpp: Removed.
     19        * platform/KURLGooglePrivate.h: Removed.
     20
    1212013-04-05  Bem Jones-Bey  <bjonesbe@adobe.com>
    222
  • trunk/Source/WebCore/config.h

    r144760 r147766  
    128128#define WTF_CHANGES 1
    129129
    130 #define WTF_USE_GOOGLEURL 1
    131 
    132130#endif /* PLATFORM(CHROMIUM) */
    133131
  • trunk/Source/WebCore/platform/KURL.cpp

    r147715 r147766  
    6565    return (character | 0x20) == lowercaseLetter;
    6666}
    67 
    68 #if !USE(GOOGLEURL)
    6967
    7068static const char wsScheme[] = {'w', 's'};
     
    17171715#endif
    17181716
    1719 #endif // !USE(GOOGLEURL)
    1720 
    17211717String KURL::strippedForUseAsReferrer() const
    17221718{
     
    19041900{
    19051901    MemoryClassInfo info(memoryObjectInfo, this);
    1906 #if USE(GOOGLEURL)
    1907     info.addMember(m_url, "url");
    1908 #else // !USE(GOOGLEURL)
    19091902    info.addMember(m_string, "string");
    1910 #endif
    19111903}
    19121904
    19131905bool KURL::isSafeToSendToAnotherThread() const
    19141906{
    1915 #if USE(GOOGLEURL)
    1916     return m_url.isSafeToSendToAnotherThread();
    1917 #else // !USE(GOOGLEURL)
    19181907    return m_string.isSafeToSendToAnotherThread();
    1919 #endif
    19201908}
    19211909
  • trunk/Source/WebCore/platform/KURL.h

    r147715 r147766  
    4545#endif
    4646
    47 #if USE(GOOGLEURL)
    48 #include "KURLGooglePrivate.h"
    49 #endif
    50 
    5147namespace WebCore {
    5248
     
    6561    // It is usually best to avoid repeatedly parsing a string, unless memory saving outweigh the possible slow-downs.
    6662    KURL(ParsedURLStringTag, const String&);
    67 #if USE(GOOGLEURL)
    68     explicit KURL(WTF::HashTableDeletedValueType) : m_url(WTF::HashTableDeletedValue) { }
    69 #else
    7063    explicit KURL(WTF::HashTableDeletedValueType) : m_string(WTF::HashTableDeletedValue) { }
    71 #endif
    7264    bool isHashTableDeletedValue() const { return string().isHashTableDeletedValue(); }
    7365
     
    8274    KURL(const KURL& base, const String& relative, const TextEncoding&);
    8375
    84 #if USE(GOOGLEURL)
    85     // For conversions from other structures that have already parsed and
    86     // canonicalized the URL. The input must be exactly what KURL would have
    87     // done with the same input.
    88     KURL(const CString& canonicalSpec, const url_parse::Parsed&, bool isValid);
    89 #endif
    90 
    9176    String strippedForUseAsReferrer() const;
    9277
     
    116101    bool isHierarchical() const;
    117102
    118 #if USE(GOOGLEURL)
    119     const String& string() const { return m_url.string(); }
    120 #else
    121103    const String& string() const { return m_string; }
    122 #endif
    123104
    124105    String elidedString() const;
     
    203184#endif
    204185
    205 #if USE(GOOGLEURL)
    206     // Getters for the parsed structure and its corresponding 8-bit string.
    207     const url_parse::Parsed& parsed() const { return m_url.m_parsed; }
    208     const CString& utf8String() const { return m_url.utf8String(); }
    209 #endif
    210 
    211 
    212 #if USE(GOOGLEURL)
    213     const KURL* innerURL() const { return m_url.innerURL(); }
    214 #else
    215186    const KURL* innerURL() const { return 0; }
    216 #endif
    217187
    218188#ifndef NDEBUG
     
    226196    void invalidate();
    227197    static bool protocolIs(const String&, const char*);
    228 #if USE(GOOGLEURL)
    229     friend class KURLGooglePrivate;
    230     KURLGooglePrivate m_url;
    231 #else  // !USE(GOOGLEURL)
    232198    void init(const KURL&, const String&, const TextEncoding&);
    233199    void copyToBuffer(Vector<char, 512>& buffer) const;
     
    253219    int m_queryEnd;
    254220    int m_fragmentEnd;
    255 #endif
    256221};
    257222
     
    324289}
    325290
    326 #if !USE(GOOGLEURL)
    327 
    328291// Inline versions of some non-GoogleURL functions so we can get inlining
    329292// without having to have a lot of ugly ifdefs in the class definition.
     
    383346    return m_pathAfterLastSlash;
    384347}
    385 
    386 #endif // !USE(GOOGLEURL)
    387348
    388349} // namespace WebCore
  • trunk/Source/WebKit/blackberry/ChangeLog

    r147747 r147766  
     12013-04-05  Zan Dobersek  <zdobersek@igalia.com>
     2
     3        Remove WTF_USE_GOOGLEURL-guarded code
     4        https://bugs.webkit.org/show_bug.cgi?id=114028
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        * WebCoreSupport/AboutDataUseFeatures.in: Remove GOOGLEURL from the list.
     9
    1102013-04-04  Jacky Jiang  <zhajiang@rim.com>
    211
  • trunk/Source/WebKit/blackberry/WebCoreSupport/AboutDataUseFeatures.in

    r147715 r147766  
    3737GLIB_UNICODE
    3838GLX
    39 GOOGLEURL
    4039GRAMMAR_CHECKING
    4140GRAPHICS_SURFACE
Note: See TracChangeset for help on using the changeset viewer.