Bug 24816 - Wean KURLGoogle off the deprecated GoogleURL UTF16Char type
Summary: Wean KURLGoogle off the deprecated GoogleURL UTF16Char type
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Mark Mentovai
URL:
Keywords:
Depends on:
Blocks: 37641
  Show dependency treegraph
 
Reported: 2009-03-25 14:32 PDT by Mark Mentovai
Modified: 2013-09-12 22:40 PDT (History)
4 users (show)

See Also:


Attachments
Do it (3.41 KB, patch)
2009-03-25 14:34 PDT, Mark Mentovai
eric: review-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Mentovai 2009-03-25 14:32:02 PDT
UTF16Char is going away.

http://code.google.com/p/google-url/source/detail?r=100
Comment 1 Mark Mentovai 2009-03-25 14:34:19 PDT
Created attachment 28947 [details]
Do it

Brett's really the one who should look at this, but Dimitri's a real reviewer, so you two can duke it out.
Comment 2 Brett Wilson (Google) 2009-03-25 20:31:16 PDT
looks good to me
Comment 3 Eric Seidel (no email) 2009-03-25 21:00:24 PDT
Comment on attachment 28947 [details]
Do it

Me too.  Although why char16 over UChar or unsigned short or whatever other char types we use in WebCore?  I've never seen char16 used in WebCore before...  Maybe I've just not paid attention.
Comment 4 Mark Mentovai 2009-03-25 21:19:02 PDT
char16 is because we need to access these templates in GoogleURL, and that's how it (now) refers to them.  GoogleURL gets its char16/string16 support from its restricted version of the Chromium base.  KURLGoogle is the "glue" between WebKit and GoogleURL, it shouldn't leak/expose char16 or string16 to the rest of WebKit, and it doesn't.  From WebKit's perspective, it's just platform-specific stuff.
Comment 5 Darin Fisher (:fishd, Google) 2009-03-25 22:33:43 PDT
Mark:  but the appearance of char16 in WebCore/platform/KURLGooglePrivate.h suggests that there is some considerable leakage.  it seems unfortunate to require the presence of a base/string16.h header when building WebKit when we don't actually need string16... we just need something exactly equivalent to UChar.
Comment 6 Darin Fisher (:fishd, Google) 2009-03-25 22:36:47 PDT
Mark:  instead of trying to teach GoogleURL to know about a global char16 type, I think it would be better to let it keep its own UTF16Char type, but then define it in a compatible with char16 and UChar fashion, like what is done at the bottom of this file:

http://src.chromium.org/viewvc/chrome/trunk/deps/third_party/WebKit/WebKit/chromium/public/WebCommon.h?view=markup
Comment 7 Eric Seidel (no email) 2009-03-25 23:00:06 PDT
Comment on attachment 28947 [details]
Do it

Based on Darin's comments, I'll remove my review, and let you and Darin sort this one out. :)
Comment 8 Anders Carlsson 2013-09-12 22:40:56 PDT
KURLGoogle is gone.