<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[160608] trunk/Source/WebKit2</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/160608">160608</a></dd>
<dt>Author</dt> <dd>weinig@apple.com</dd>
<dt>Date</dt> <dd>2013-12-14 17:09:47 -0800 (Sat, 14 Dec 2013)</dd>
</dl>

<h3>Log Message</h3>
<pre>[WK2] Rename WebString to API::String
https://bugs.webkit.org/show_bug.cgi?id=125726

Reviewed by Anders Carlsson.

* Shared/API/Cocoa/WKRemoteObjectCoder.mm:
* Shared/API/Cocoa/WKRemoteObjectRegistry.mm:
* Shared/API/c/WKPluginInformation.cpp:
* Shared/API/c/WKSharedAPICast.h:
* Shared/API/c/WKString.cpp:
* Shared/API/c/cf/WKStringCF.mm:
* Shared/APIArray.cpp:
* Shared/APIArray.h:
* Shared/APIString.h: Copied from Source/WebKit2/Shared/WebString.h.
* Shared/Cocoa/WKNSString.h:
* Shared/Cocoa/WKNSString.mm:
* Shared/ImmutableDictionary.cpp:
* Shared/Plugins/Netscape/PluginInformation.cpp:
* Shared/Plugins/Netscape/mac/PluginInformationMac.mm:
* Shared/UserData.cpp:
* Shared/UserMessageCoders.h:
* Shared/WebArchiveResource.h:
* Shared/WebOpenPanelParameters.cpp:
* Shared/WebRenderLayer.cpp:
* Shared/WebRenderObject.cpp:
* Shared/WebString.h: Removed.
* UIProcess/API/C/WKCredential.cpp:
* UIProcess/API/C/WKDatabaseManager.cpp:
* UIProcess/API/C/WKPage.cpp:
* UIProcess/API/C/mac/WKContextPrivateMac.mm:
* UIProcess/API/Cocoa/WKBrowsingContextGroup.mm:
* UIProcess/APINavigationData.h:
* UIProcess/Authentication/WebCredential.h:
* UIProcess/Notifications/WebNotificationManagerProxy.cpp:
* UIProcess/Plugins/PlugInAutoStartProvider.cpp:
* UIProcess/Plugins/WebPluginSiteDataManager.cpp:
* UIProcess/WebContext.cpp:
* UIProcess/WebDatabaseManagerProxy.cpp:
* UIProcess/WebFormClient.cpp:
* UIProcess/WebLoaderClient.cpp:
* UIProcess/WebPageGroup.cpp:
* UIProcess/WebUIClient.cpp:
* WebKit2.xcodeproj/project.pbxproj:
* WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
* WebProcess/InjectedBundle/InjectedBundle.cpp:
* WebProcess/InjectedBundle/InjectedBundlePageEditorClient.cpp:
* WebProcess/InjectedBundle/InjectedBundlePageFormClient.cpp:
* WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp:
* WebProcess/WebPage/mac/WKAccessibilityWebPageObject.mm:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebKit2ChangeLog">trunk/Source/WebKit2/ChangeLog</a></li>
<li><a href="#trunkSourceWebKit2SharedAPICocoaWKRemoteObjectCodermm">trunk/Source/WebKit2/Shared/API/Cocoa/WKRemoteObjectCoder.mm</a></li>
<li><a href="#trunkSourceWebKit2SharedAPICocoaWKRemoteObjectRegistrymm">trunk/Source/WebKit2/Shared/API/Cocoa/WKRemoteObjectRegistry.mm</a></li>
<li><a href="#trunkSourceWebKit2SharedAPIcWKPluginInformationcpp">trunk/Source/WebKit2/Shared/API/c/WKPluginInformation.cpp</a></li>
<li><a href="#trunkSourceWebKit2SharedAPIcWKSharedAPICasth">trunk/Source/WebKit2/Shared/API/c/WKSharedAPICast.h</a></li>
<li><a href="#trunkSourceWebKit2SharedAPIcWKStringcpp">trunk/Source/WebKit2/Shared/API/c/WKString.cpp</a></li>
<li><a href="#trunkSourceWebKit2SharedAPIccfWKStringCFmm">trunk/Source/WebKit2/Shared/API/c/cf/WKStringCF.mm</a></li>
<li><a href="#trunkSourceWebKit2SharedAPIArraycpp">trunk/Source/WebKit2/Shared/APIArray.cpp</a></li>
<li><a href="#trunkSourceWebKit2SharedAPIArrayh">trunk/Source/WebKit2/Shared/APIArray.h</a></li>
<li><a href="#trunkSourceWebKit2SharedCocoaWKNSStringh">trunk/Source/WebKit2/Shared/Cocoa/WKNSString.h</a></li>
<li><a href="#trunkSourceWebKit2SharedCocoaWKNSStringmm">trunk/Source/WebKit2/Shared/Cocoa/WKNSString.mm</a></li>
<li><a href="#trunkSourceWebKit2SharedImmutableDictionarycpp">trunk/Source/WebKit2/Shared/ImmutableDictionary.cpp</a></li>
<li><a href="#trunkSourceWebKit2SharedPluginsNetscapePluginInformationcpp">trunk/Source/WebKit2/Shared/Plugins/Netscape/PluginInformation.cpp</a></li>
<li><a href="#trunkSourceWebKit2SharedPluginsNetscapemacPluginInformationMacmm">trunk/Source/WebKit2/Shared/Plugins/Netscape/mac/PluginInformationMac.mm</a></li>
<li><a href="#trunkSourceWebKit2SharedUserDatacpp">trunk/Source/WebKit2/Shared/UserData.cpp</a></li>
<li><a href="#trunkSourceWebKit2SharedUserMessageCodersh">trunk/Source/WebKit2/Shared/UserMessageCoders.h</a></li>
<li><a href="#trunkSourceWebKit2SharedWebArchiveResourceh">trunk/Source/WebKit2/Shared/WebArchiveResource.h</a></li>
<li><a href="#trunkSourceWebKit2SharedWebOpenPanelParameterscpp">trunk/Source/WebKit2/Shared/WebOpenPanelParameters.cpp</a></li>
<li><a href="#trunkSourceWebKit2SharedWebRenderLayercpp">trunk/Source/WebKit2/Shared/WebRenderLayer.cpp</a></li>
<li><a href="#trunkSourceWebKit2SharedWebRenderObjectcpp">trunk/Source/WebKit2/Shared/WebRenderObject.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPICWKCredentialcpp">trunk/Source/WebKit2/UIProcess/API/C/WKCredential.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPICWKDatabaseManagercpp">trunk/Source/WebKit2/UIProcess/API/C/WKDatabaseManager.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPICWKPagecpp">trunk/Source/WebKit2/UIProcess/API/C/WKPage.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPICmacWKContextPrivateMacmm">trunk/Source/WebKit2/UIProcess/API/C/mac/WKContextPrivateMac.mm</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPICocoaWKBrowsingContextGroupmm">trunk/Source/WebKit2/UIProcess/API/Cocoa/WKBrowsingContextGroup.mm</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPINavigationDatah">trunk/Source/WebKit2/UIProcess/APINavigationData.h</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAuthenticationWebCredentialh">trunk/Source/WebKit2/UIProcess/Authentication/WebCredential.h</a></li>
<li><a href="#trunkSourceWebKit2UIProcessNotificationsWebNotificationManagerProxycpp">trunk/Source/WebKit2/UIProcess/Notifications/WebNotificationManagerProxy.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessPluginsPlugInAutoStartProvidercpp">trunk/Source/WebKit2/UIProcess/Plugins/PlugInAutoStartProvider.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessPluginsWebPluginSiteDataManagercpp">trunk/Source/WebKit2/UIProcess/Plugins/WebPluginSiteDataManager.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessWebContextcpp">trunk/Source/WebKit2/UIProcess/WebContext.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessWebDatabaseManagerProxycpp">trunk/Source/WebKit2/UIProcess/WebDatabaseManagerProxy.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessWebFormClientcpp">trunk/Source/WebKit2/UIProcess/WebFormClient.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessWebLoaderClientcpp">trunk/Source/WebKit2/UIProcess/WebLoaderClient.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessWebPageGroupcpp">trunk/Source/WebKit2/UIProcess/WebPageGroup.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessWebUIClientcpp">trunk/Source/WebKit2/UIProcess/WebUIClient.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebKit2xcodeprojprojectpbxproj">trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj</a></li>
<li><a href="#trunkSourceWebKit2WebProcessInjectedBundleAPIcWKBundlePagecpp">trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePage.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessInjectedBundleInjectedBundlecpp">trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessInjectedBundleInjectedBundlePageEditorClientcpp">trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundlePageEditorClient.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessInjectedBundleInjectedBundlePageFormClientcpp">trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundlePageFormClient.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessInjectedBundleInjectedBundlePageUIClientcpp">trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebPagemacWKAccessibilityWebPageObjectmm">trunk/Source/WebKit2/WebProcess/WebPage/mac/WKAccessibilityWebPageObject.mm</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkSourceWebKit2SharedAPIStringh">trunk/Source/WebKit2/Shared/APIString.h</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkSourceWebKit2SharedWebStringh">trunk/Source/WebKit2/Shared/WebString.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebKit2ChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/ChangeLog (160607 => 160608)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/ChangeLog        2013-12-15 00:43:57 UTC (rev 160607)
+++ trunk/Source/WebKit2/ChangeLog        2013-12-15 01:09:47 UTC (rev 160608)
</span><span class="lines">@@ -1,3 +1,55 @@
</span><ins>+2013-12-13  Sam Weinig  &lt;sam@webkit.org&gt;
+
+        [WK2] Rename WebString to API::String
+        https://bugs.webkit.org/show_bug.cgi?id=125726
+
+        Reviewed by Anders Carlsson.
+
+        * Shared/API/Cocoa/WKRemoteObjectCoder.mm:
+        * Shared/API/Cocoa/WKRemoteObjectRegistry.mm:
+        * Shared/API/c/WKPluginInformation.cpp:
+        * Shared/API/c/WKSharedAPICast.h:
+        * Shared/API/c/WKString.cpp:
+        * Shared/API/c/cf/WKStringCF.mm:
+        * Shared/APIArray.cpp:
+        * Shared/APIArray.h:
+        * Shared/APIString.h: Copied from Source/WebKit2/Shared/WebString.h.
+        * Shared/Cocoa/WKNSString.h:
+        * Shared/Cocoa/WKNSString.mm:
+        * Shared/ImmutableDictionary.cpp:
+        * Shared/Plugins/Netscape/PluginInformation.cpp:
+        * Shared/Plugins/Netscape/mac/PluginInformationMac.mm:
+        * Shared/UserData.cpp:
+        * Shared/UserMessageCoders.h:
+        * Shared/WebArchiveResource.h:
+        * Shared/WebOpenPanelParameters.cpp:
+        * Shared/WebRenderLayer.cpp:
+        * Shared/WebRenderObject.cpp:
+        * Shared/WebString.h: Removed.
+        * UIProcess/API/C/WKCredential.cpp:
+        * UIProcess/API/C/WKDatabaseManager.cpp:
+        * UIProcess/API/C/WKPage.cpp:
+        * UIProcess/API/C/mac/WKContextPrivateMac.mm:
+        * UIProcess/API/Cocoa/WKBrowsingContextGroup.mm:
+        * UIProcess/APINavigationData.h:
+        * UIProcess/Authentication/WebCredential.h:
+        * UIProcess/Notifications/WebNotificationManagerProxy.cpp:
+        * UIProcess/Plugins/PlugInAutoStartProvider.cpp:
+        * UIProcess/Plugins/WebPluginSiteDataManager.cpp:
+        * UIProcess/WebContext.cpp:
+        * UIProcess/WebDatabaseManagerProxy.cpp:
+        * UIProcess/WebFormClient.cpp:
+        * UIProcess/WebLoaderClient.cpp:
+        * UIProcess/WebPageGroup.cpp:
+        * UIProcess/WebUIClient.cpp:
+        * WebKit2.xcodeproj/project.pbxproj:
+        * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
+        * WebProcess/InjectedBundle/InjectedBundle.cpp:
+        * WebProcess/InjectedBundle/InjectedBundlePageEditorClient.cpp:
+        * WebProcess/InjectedBundle/InjectedBundlePageFormClient.cpp:
+        * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp:
+        * WebProcess/WebPage/mac/WKAccessibilityWebPageObject.mm:
+
</ins><span class="cx"> 2013-12-14  Andy Estes  &lt;aestes@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Unify FeatureDefines.xcconfig
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedAPICocoaWKRemoteObjectCodermm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/API/Cocoa/WKRemoteObjectCoder.mm (160607 => 160608)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/API/Cocoa/WKRemoteObjectCoder.mm        2013-12-15 00:43:57 UTC (rev 160607)
+++ trunk/Source/WebKit2/Shared/API/Cocoa/WKRemoteObjectCoder.mm        2013-12-15 01:09:47 UTC (rev 160608)
</span><span class="lines">@@ -30,10 +30,10 @@
</span><span class="cx"> 
</span><span class="cx"> #import &quot;APIArray.h&quot;
</span><span class="cx"> #import &quot;APINumber.h&quot;
</span><ins>+#import &quot;APIString.h&quot;
</ins><span class="cx"> #import &quot;MutableDictionary.h&quot;
</span><span class="cx"> #import &quot;WKRemoteObjectInterfaceInternal.h&quot;
</span><span class="cx"> #import &quot;WebData.h&quot;
</span><del>-#import &quot;WebString.h&quot;
</del><span class="cx"> #import &lt;objc/runtime.h&gt;
</span><span class="cx"> #import &lt;wtf/RetainPtr.h&gt;
</span><span class="cx"> #import &lt;wtf/TemporaryChange.h&gt;
</span><span class="lines">@@ -175,7 +175,7 @@
</span><span class="cx">     if (!objectClass)
</span><span class="cx">         [NSException raise:NSInvalidArgumentException format:@&quot;-classForCoder returned nil for %@&quot;, object];
</span><span class="cx"> 
</span><del>-    encoder-&gt;_currentDictionary-&gt;set(classNameKey, WebString::create(class_getName(objectClass)));
</del><ins>+    encoder-&gt;_currentDictionary-&gt;set(classNameKey, API::String::create(class_getName(objectClass)));
</ins><span class="cx"> 
</span><span class="cx">     if ([object isKindOfClass:[NSInvocation class]]) {
</span><span class="cx">         // We have to special case NSInvocation since we don't want to encode the target.
</span><span class="lines">@@ -434,7 +434,7 @@
</span><span class="cx"> 
</span><span class="cx"> static id decodeObject(WKRemoteObjectDecoder *decoder)
</span><span class="cx"> {
</span><del>-    WebString* classNameString = decoder-&gt;_currentDictionary-&gt;get&lt;WebString&gt;(classNameKey);
</del><ins>+    API::String* classNameString = decoder-&gt;_currentDictionary-&gt;get&lt;API::String&gt;(classNameKey);
</ins><span class="cx">     if (!classNameString)
</span><span class="cx">         [NSException raise:NSInvalidUnarchiveOperationException format:@&quot;Class name missing&quot;];
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedAPICocoaWKRemoteObjectRegistrymm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/API/Cocoa/WKRemoteObjectRegistry.mm (160607 => 160608)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/API/Cocoa/WKRemoteObjectRegistry.mm        2013-12-15 00:43:57 UTC (rev 160607)
+++ trunk/Source/WebKit2/Shared/API/Cocoa/WKRemoteObjectRegistry.mm        2013-12-15 01:09:47 UTC (rev 160608)
</span><span class="lines">@@ -88,7 +88,7 @@
</span><span class="cx">     [encoder encodeObject:invocation forKey:invocationKey];
</span><span class="cx"> 
</span><span class="cx">     RefPtr&lt;MutableDictionary&gt; body = MutableDictionary::create();
</span><del>-    body-&gt;set(interfaceIdentifierKey, WebString::create(interface.identifier));
</del><ins>+    body-&gt;set(interfaceIdentifierKey, API::String::create(interface.identifier));
</ins><span class="cx">     body-&gt;set(encodedInvocationKey, [encoder rootObjectDictionary]);
</span><span class="cx"> 
</span><span class="cx">     [self _sendMessageWithBody:body.release()];
</span><span class="lines">@@ -123,7 +123,7 @@
</span><span class="cx"> 
</span><span class="cx">     const ImmutableDictionary* dictionary = toImpl(static_cast&lt;WKDictionaryRef&gt;(body));
</span><span class="cx"> 
</span><del>-    WebString* interfaceIdentifier = dictionary-&gt;get&lt;WebString&gt;(interfaceIdentifierKey);
</del><ins>+    API::String* interfaceIdentifier = dictionary-&gt;get&lt;API::String&gt;(interfaceIdentifierKey);
</ins><span class="cx">     if (!interfaceIdentifier)
</span><span class="cx">         return NO;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedAPIcWKPluginInformationcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/API/c/WKPluginInformation.cpp (160607 => 160608)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/API/c/WKPluginInformation.cpp        2013-12-15 00:43:57 UTC (rev 160607)
+++ trunk/Source/WebKit2/Shared/API/c/WKPluginInformation.cpp        2013-12-15 01:09:47 UTC (rev 160608)
</span><span class="lines">@@ -26,16 +26,16 @@
</span><span class="cx"> #include &quot;config.h&quot;
</span><span class="cx"> #include &quot;WKPluginInformation.h&quot;
</span><span class="cx"> 
</span><ins>+#include &quot;APIString.h&quot;
</ins><span class="cx"> #include &quot;PluginInformation.h&quot;
</span><span class="cx"> #include &quot;WKSharedAPICast.h&quot;
</span><del>-#include &quot;WebString.h&quot;
</del><span class="cx"> 
</span><span class="cx"> using namespace WebKit;
</span><span class="cx"> 
</span><span class="cx"> WKStringRef WKPluginInformationBundleIdentifierKey()
</span><span class="cx"> {
</span><span class="cx"> #if ENABLE(NETSCAPE_PLUGIN_API)
</span><del>-    static WebString* key = WebString::create(pluginInformationBundleIdentifierKey()).leakRef();
</del><ins>+    static API::String* key = API::String::create(pluginInformationBundleIdentifierKey()).leakRef();
</ins><span class="cx">     return toAPI(key);
</span><span class="cx"> #else
</span><span class="cx">     return 0;
</span><span class="lines">@@ -45,7 +45,7 @@
</span><span class="cx"> WKStringRef WKPluginInformationBundleVersionKey()
</span><span class="cx"> {
</span><span class="cx"> #if ENABLE(NETSCAPE_PLUGIN_API)
</span><del>-    static WebString* key = WebString::create(pluginInformationBundleVersionKey()).leakRef();
</del><ins>+    static API::String* key = API::String::create(pluginInformationBundleVersionKey()).leakRef();
</ins><span class="cx">     return toAPI(key);
</span><span class="cx"> #else
</span><span class="cx">     return 0;
</span><span class="lines">@@ -55,7 +55,7 @@
</span><span class="cx"> WKStringRef WKPluginInformationBundleShortVersionKey()
</span><span class="cx"> {
</span><span class="cx"> #if ENABLE(NETSCAPE_PLUGIN_API)
</span><del>-    static WebString* key = WebString::create(pluginInformationBundleShortVersionKey()).leakRef();
</del><ins>+    static API::String* key = API::String::create(pluginInformationBundleShortVersionKey()).leakRef();
</ins><span class="cx">     return toAPI(key);
</span><span class="cx"> #else
</span><span class="cx">     return 0;
</span><span class="lines">@@ -65,7 +65,7 @@
</span><span class="cx"> WKStringRef WKPluginInformationPathKey()
</span><span class="cx"> {
</span><span class="cx"> #if ENABLE(NETSCAPE_PLUGIN_API)
</span><del>-    static WebString* key = WebString::create(pluginInformationPathKey()).leakRef();
</del><ins>+    static API::String* key = API::String::create(pluginInformationPathKey()).leakRef();
</ins><span class="cx">     return toAPI(key);
</span><span class="cx"> #else
</span><span class="cx">     return 0;
</span><span class="lines">@@ -75,7 +75,7 @@
</span><span class="cx"> WKStringRef WKPluginInformationDisplayNameKey()
</span><span class="cx"> {
</span><span class="cx"> #if ENABLE(NETSCAPE_PLUGIN_API)
</span><del>-    static WebString* key = WebString::create(pluginInformationDisplayNameKey()).leakRef();
</del><ins>+    static API::String* key = API::String::create(pluginInformationDisplayNameKey()).leakRef();
</ins><span class="cx">     return toAPI(key);
</span><span class="cx"> #else
</span><span class="cx">     return 0;
</span><span class="lines">@@ -85,7 +85,7 @@
</span><span class="cx"> WKStringRef WKPluginInformationDefaultLoadPolicyKey()
</span><span class="cx"> {
</span><span class="cx"> #if ENABLE(NETSCAPE_PLUGIN_API)
</span><del>-    static WebString* key = WebString::create(pluginInformationDefaultLoadPolicyKey()).leakRef();
</del><ins>+    static API::String* key = API::String::create(pluginInformationDefaultLoadPolicyKey()).leakRef();
</ins><span class="cx">     return toAPI(key);
</span><span class="cx"> #else
</span><span class="cx">     return 0;
</span><span class="lines">@@ -95,7 +95,7 @@
</span><span class="cx"> WKStringRef WKPluginInformationUpdatePastLastBlockedVersionIsKnownAvailableKey()
</span><span class="cx"> {
</span><span class="cx"> #if ENABLE(NETSCAPE_PLUGIN_API)
</span><del>-    static WebString* key = WebString::create(pluginInformationUpdatePastLastBlockedVersionIsKnownAvailableKey()).leakRef();
</del><ins>+    static API::String* key = API::String::create(pluginInformationUpdatePastLastBlockedVersionIsKnownAvailableKey()).leakRef();
</ins><span class="cx">     return toAPI(key);
</span><span class="cx"> #else
</span><span class="cx">     return 0;
</span><span class="lines">@@ -105,7 +105,7 @@
</span><span class="cx"> WKStringRef WKPluginInformationHasSandboxProfileKey()
</span><span class="cx"> {
</span><span class="cx"> #if ENABLE(NETSCAPE_PLUGIN_API)
</span><del>-    static WebString* key = WebString::create(pluginInformationHasSandboxProfileKey()).leakRef();
</del><ins>+    static API::String* key = API::String::create(pluginInformationHasSandboxProfileKey()).leakRef();
</ins><span class="cx">     return toAPI(key);
</span><span class="cx"> #else
</span><span class="cx">     return 0;
</span><span class="lines">@@ -115,7 +115,7 @@
</span><span class="cx"> WKStringRef WKPluginInformationFrameURLKey()
</span><span class="cx"> {
</span><span class="cx"> #if ENABLE(NETSCAPE_PLUGIN_API)
</span><del>-    static WebString* key = WebString::create(pluginInformationFrameURLKey()).leakRef();
</del><ins>+    static API::String* key = API::String::create(pluginInformationFrameURLKey()).leakRef();
</ins><span class="cx">     return toAPI(key);
</span><span class="cx"> #else
</span><span class="cx">     return 0;
</span><span class="lines">@@ -125,7 +125,7 @@
</span><span class="cx"> WKStringRef WKPluginInformationMIMETypeKey()
</span><span class="cx"> {
</span><span class="cx"> #if ENABLE(NETSCAPE_PLUGIN_API)
</span><del>-    static WebString* key = WebString::create(pluginInformationMIMETypeKey()).leakRef();
</del><ins>+    static API::String* key = API::String::create(pluginInformationMIMETypeKey()).leakRef();
</ins><span class="cx">     return toAPI(key);
</span><span class="cx"> #else
</span><span class="cx">     return 0;
</span><span class="lines">@@ -135,7 +135,7 @@
</span><span class="cx"> WKStringRef WKPluginInformationPageURLKey()
</span><span class="cx"> {
</span><span class="cx"> #if ENABLE(NETSCAPE_PLUGIN_API)
</span><del>-    static WebString* key = WebString::create(pluginInformationPageURLKey()).leakRef();
</del><ins>+    static API::String* key = API::String::create(pluginInformationPageURLKey()).leakRef();
</ins><span class="cx">     return toAPI(key);
</span><span class="cx"> #else
</span><span class="cx">     return 0;
</span><span class="lines">@@ -145,7 +145,7 @@
</span><span class="cx"> WKStringRef WKPluginInformationPluginspageAttributeURLKey()
</span><span class="cx"> {
</span><span class="cx"> #if ENABLE(NETSCAPE_PLUGIN_API)
</span><del>-    static WebString* key = WebString::create(pluginInformationPluginspageAttributeURLKey()).leakRef();
</del><ins>+    static API::String* key = API::String::create(pluginInformationPluginspageAttributeURLKey()).leakRef();
</ins><span class="cx">     return toAPI(key);
</span><span class="cx"> #else
</span><span class="cx">     return 0;
</span><span class="lines">@@ -155,7 +155,7 @@
</span><span class="cx"> WKStringRef WKPluginInformationPluginURLKey()
</span><span class="cx"> {
</span><span class="cx"> #if ENABLE(NETSCAPE_PLUGIN_API)
</span><del>-    static WebString* key = WebString::create(pluginInformationPluginURLKey()).leakRef();
</del><ins>+    static API::String* key = API::String::create(pluginInformationPluginURLKey()).leakRef();
</ins><span class="cx">     return toAPI(key);
</span><span class="cx"> #else
</span><span class="cx">     return 0;
</span><span class="lines">@@ -165,7 +165,7 @@
</span><span class="cx"> WKStringRef WKPlugInInformationReplacementObscuredKey()
</span><span class="cx"> {
</span><span class="cx"> #if ENABLE(NETSCAPE_PLUGIN_API)
</span><del>-    static WebString* key = WebString::create(plugInInformationReplacementObscuredKey()).leakRef();
</del><ins>+    static API::String* key = API::String::create(plugInInformationReplacementObscuredKey()).leakRef();
</ins><span class="cx">     return toAPI(key);
</span><span class="cx"> #else
</span><span class="cx">     return 0;
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedAPIcWKSharedAPICasth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/API/c/WKSharedAPICast.h (160607 => 160608)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/API/c/WKSharedAPICast.h        2013-12-15 00:43:57 UTC (rev 160607)
+++ trunk/Source/WebKit2/Shared/API/c/WKSharedAPICast.h        2013-12-15 01:09:47 UTC (rev 160608)
</span><span class="lines">@@ -27,6 +27,7 @@
</span><span class="cx"> #define WKSharedAPICast_h
</span><span class="cx"> 
</span><span class="cx"> #include &quot;APINumber.h&quot;
</span><ins>+#include &quot;APIString.h&quot;
</ins><span class="cx"> #include &quot;ImageOptions.h&quot;
</span><span class="cx"> #include &quot;SameDocumentNavigationType.h&quot;
</span><span class="cx"> #include &quot;WKBase.h&quot;
</span><span class="lines">@@ -44,7 +45,6 @@
</span><span class="cx"> #include &quot;WebEvent.h&quot;
</span><span class="cx"> #include &quot;WebFindOptions.h&quot;
</span><span class="cx"> #include &quot;WebSecurityOrigin.h&quot;
</span><del>-#include &quot;WebString.h&quot;
</del><span class="cx"> #include &quot;WebURL.h&quot;
</span><span class="cx"> #include &quot;WebURLRequest.h&quot;
</span><span class="cx"> #include &quot;WebURLResponse.h&quot;
</span><span class="lines">@@ -108,7 +108,7 @@
</span><span class="cx"> WK_ADD_API_MAPPING(WKSecurityOriginRef, WebSecurityOrigin)
</span><span class="cx"> WK_ADD_API_MAPPING(WKSerializedScriptValueRef, WebSerializedScriptValue)
</span><span class="cx"> WK_ADD_API_MAPPING(WKSizeRef, API::Size)
</span><del>-WK_ADD_API_MAPPING(WKStringRef, WebString)
</del><ins>+WK_ADD_API_MAPPING(WKStringRef, API::String)
</ins><span class="cx"> WK_ADD_API_MAPPING(WKTypeRef, API::Object)
</span><span class="cx"> WK_ADD_API_MAPPING(WKUInt64Ref, API::UInt64)
</span><span class="cx"> WK_ADD_API_MAPPING(WKURLRef, WebURL)
</span><span class="lines">@@ -124,6 +124,12 @@
</span><span class="cx"> WK_ADD_API_MAPPING(WKObjCTypeWrapperRef, ObjCObjectGraph)
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><ins>+template&lt;typename T&gt;
+inline typename ImplTypeInfo&lt;T&gt;::APIType toAPI(T t)
+{
+    return reinterpret_cast&lt;typename ImplTypeInfo&lt;T&gt;::APIType&gt;(t);
+}
+
</ins><span class="cx"> template&lt;typename ImplType, typename APIType = typename ImplTypeInfo&lt;ImplType*&gt;::APIType&gt;
</span><span class="cx"> class ProxyingRefPtr {
</span><span class="cx"> public:
</span><span class="lines">@@ -152,23 +158,17 @@
</span><span class="cx">     return reinterpret_cast&lt;typename APITypeInfo&lt;T&gt;::ImplType&gt;(const_cast&lt;NonConstValueType*&gt;(t));
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-template&lt;typename T&gt;
-inline typename ImplTypeInfo&lt;T&gt;::APIType toAPI(T t)
-{
-    return reinterpret_cast&lt;typename ImplTypeInfo&lt;T&gt;::APIType&gt;(t);
-}
-
</del><span class="cx"> /* Special cases. */
</span><span class="cx"> 
</span><del>-inline ProxyingRefPtr&lt;WebString&gt; toAPI(StringImpl* string)
</del><ins>+inline ProxyingRefPtr&lt;API::String&gt; toAPI(StringImpl* string)
</ins><span class="cx"> {
</span><del>-    return ProxyingRefPtr&lt;WebString&gt;(WebString::create(string));
</del><ins>+    return ProxyingRefPtr&lt;API::String&gt;(API::String::create(string));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> inline WKStringRef toCopiedAPI(const String&amp; string)
</span><span class="cx"> {
</span><del>-    RefPtr&lt;WebString&gt; webString = WebString::create(string);
-    return toAPI(webString.release().leakRef());
</del><ins>+    RefPtr&lt;API::String&gt; apiString = API::String::create(string);
+    return toAPI(apiString.release().leakRef());
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> inline ProxyingRefPtr&lt;WebURL&gt; toURLRef(StringImpl* string)
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedAPIcWKStringcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/API/c/WKString.cpp (160607 => 160608)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/API/c/WKString.cpp        2013-12-15 00:43:57 UTC (rev 160607)
+++ trunk/Source/WebKit2/Shared/API/c/WKString.cpp        2013-12-15 01:09:47 UTC (rev 160608)
</span><span class="lines">@@ -33,13 +33,13 @@
</span><span class="cx"> 
</span><span class="cx"> WKTypeID WKStringGetTypeID()
</span><span class="cx"> {
</span><del>-    return toAPI(WebString::APIType);
</del><ins>+    return toAPI(API::String::APIType);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> WKStringRef WKStringCreateWithUTF8CString(const char* string)
</span><span class="cx"> {
</span><del>-    RefPtr&lt;WebString&gt; webString = WebString::createFromUTF8String(string);
-    return toAPI(webString.release().leakRef());
</del><ins>+    RefPtr&lt;API::String&gt; apiString = API::String::createFromUTF8String(string);
+    return toAPI(apiString.release().leakRef());
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> bool WKStringIsEmpty(WKStringRef stringRef)
</span><span class="lines">@@ -85,8 +85,8 @@
</span><span class="cx"> 
</span><span class="cx"> WKStringRef WKStringCreateWithJSString(JSStringRef jsStringRef)
</span><span class="cx"> {
</span><del>-    RefPtr&lt;WebString&gt; webString = WebString::create(jsStringRef);
-    return toAPI(webString.release().leakRef());
</del><ins>+    RefPtr&lt;API::String&gt; apiString = API::String::create(jsStringRef);
+    return toAPI(apiString.release().leakRef());
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> JSStringRef WKStringCopyJSString(WKStringRef stringRef)
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedAPIccfWKStringCFmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/API/c/cf/WKStringCF.mm (160607 => 160608)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/API/c/cf/WKStringCF.mm        2013-12-15 00:43:57 UTC (rev 160607)
+++ trunk/Source/WebKit2/Shared/API/c/cf/WKStringCF.mm        2013-12-15 01:09:47 UTC (rev 160608)
</span><span class="lines">@@ -51,7 +51,7 @@
</span><span class="cx"> #if WK_API_ENABLED
</span><span class="cx">     // Since WKNSString is an internal class with no subclasses, we can do a simple equality check.
</span><span class="cx">     if (object_getClass((NSString *)cfString) == wkNSStringClass()) {
</span><del>-        return toAPI(static_cast&lt;WebString*&gt;(&amp;[(WKNSString *)cfString retain]._apiObject));
</del><ins>+        return toAPI(static_cast&lt;API::String*&gt;(&amp;[(WKNSString *)cfString retain]._apiObject));
</ins><span class="cx">     }
</span><span class="cx"> #endif
</span><span class="cx">     String string(cfString);
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedAPIArraycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/APIArray.cpp (160607 => 160608)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/APIArray.cpp        2013-12-15 00:43:57 UTC (rev 160607)
+++ trunk/Source/WebKit2/Shared/APIArray.cpp        2013-12-15 01:09:47 UTC (rev 160608)
</span><span class="lines">@@ -26,7 +26,7 @@
</span><span class="cx"> #include &quot;config.h&quot;
</span><span class="cx"> #include &quot;APIArray.h&quot;
</span><span class="cx"> 
</span><del>-#include &quot;WebString.h&quot;
</del><ins>+#include &quot;APIString.h&quot;
</ins><span class="cx"> 
</span><span class="cx"> namespace API {
</span><span class="cx"> 
</span><span class="lines">@@ -40,13 +40,13 @@
</span><span class="cx">     return adoptRef(new Array(std::move(elements)));
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;Array&gt; Array::createStringArray(const Vector&lt;String&gt;&amp; strings)
</del><ins>+PassRefPtr&lt;Array&gt; Array::createStringArray(const Vector&lt;WTF::String&gt;&amp; strings)
</ins><span class="cx"> {
</span><span class="cx">     Vector&lt;RefPtr&lt;Object&gt;&gt; elements;
</span><span class="cx">     elements.reserveInitialCapacity(strings.size());
</span><span class="cx"> 
</span><span class="cx">     for (const auto&amp; string : strings)
</span><del>-        elements.uncheckedAppend(WebKit::WebString::create(string));
</del><ins>+        elements.uncheckedAppend(API::String::create(string));
</ins><span class="cx"> 
</span><span class="cx">     return create(std::move(elements));
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedAPIArrayh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/APIArray.h (160607 => 160608)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/APIArray.h        2013-12-15 00:43:57 UTC (rev 160607)
+++ trunk/Source/WebKit2/Shared/APIArray.h        2013-12-15 01:09:47 UTC (rev 160608)
</span><span class="lines">@@ -46,9 +46,8 @@
</span><span class="cx"> public:
</span><span class="cx">     static PassRefPtr&lt;Array&gt; create();
</span><span class="cx">     static PassRefPtr&lt;Array&gt; create(Vector&lt;RefPtr&lt;Object&gt;&gt; elements);
</span><ins>+    static PassRefPtr&lt;Array&gt; createStringArray(const Vector&lt;WTF::String&gt;&amp;);
</ins><span class="cx"> 
</span><del>-    static PassRefPtr&lt;Array&gt; createStringArray(const Vector&lt;String&gt;&amp;);
-
</del><span class="cx">     virtual ~Array();
</span><span class="cx"> 
</span><span class="cx">     template&lt;typename T&gt;
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedAPIStringhfromrev160571trunkSourceWebKit2SharedWebStringh"></a>
<div class="copfile"><h4>Copied: trunk/Source/WebKit2/Shared/APIString.h (from rev 160571, trunk/Source/WebKit2/Shared/WebString.h) (0 => 160608)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/APIString.h                                (rev 0)
+++ trunk/Source/WebKit2/Shared/APIString.h        2013-12-15 01:09:47 UTC (rev 160608)
</span><span class="lines">@@ -0,0 +1,120 @@
</span><ins>+/*
+ * Copyright (C) 2010 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef APIString_h
+#define APIString_h
+
+#include &quot;APIObject.h&quot;
+#include &lt;JavaScriptCore/InitializeThreading.h&gt;
+#include &lt;JavaScriptCore/JSStringRef.h&gt;
+#include &lt;JavaScriptCore/OpaqueJSString.h&gt;
+#include &lt;wtf/PassRefPtr.h&gt;
+#include &lt;wtf/text/WTFString.h&gt;
+#include &lt;wtf/unicode/UTF8.h&gt;
+
+namespace API {
+
+class String FINAL : public API::ObjectImpl&lt;API::Object::Type::String&gt; {
+public:
+    static PassRefPtr&lt;String&gt; createNull()
+    {
+        return adoptRef(new String);
+    }
+
+    static PassRefPtr&lt;String&gt; create(const WTF::String&amp; string)
+    {
+        return adoptRef(new String(string));
+    }
+
+    static PassRefPtr&lt;String&gt; create(JSStringRef jsStringRef)
+    {
+        return adoptRef(new String(jsStringRef-&gt;string()));
+    }
+
+    static PassRefPtr&lt;String&gt; createFromUTF8String(const char* string)
+    {
+        return adoptRef(new String(WTF::String::fromUTF8(string)));
+    }
+
+    virtual ~String()
+    {
+    }
+
+    bool isNull() const { return m_string.isNull(); }
+    bool isEmpty() const { return m_string.isEmpty(); }
+    
+    size_t length() const { return m_string.length(); }
+    size_t getCharacters(UChar* buffer, size_t bufferLength) const
+    {
+        if (!bufferLength)
+            return 0;
+        bufferLength = std::min(bufferLength, static_cast&lt;size_t&gt;(m_string.length()));
+        memcpy(buffer, m_string.characters(), bufferLength * sizeof(UChar));
+        return bufferLength;
+    }
+
+    size_t maximumUTF8CStringSize() const { return m_string.length() * 3 + 1; }
+    size_t getUTF8CString(char* buffer, size_t bufferSize)
+    {
+        if (!bufferSize)
+            return 0;
+        char* p = buffer;
+        const UChar* d = m_string.characters();
+        WTF::Unicode::ConversionResult result = WTF::Unicode::convertUTF16ToUTF8(&amp;d, d + m_string.length(), &amp;p, p + bufferSize - 1, /* strict */ true);
+        *p++ = '\0';
+        if (result != WTF::Unicode::conversionOK &amp;&amp; result != WTF::Unicode::targetExhausted)
+            return 0;
+        return p - buffer;
+    }
+
+    bool equal(String* other) { return m_string == other-&gt;m_string; }
+    bool equalToUTF8String(const char* other) { return m_string == WTF::String::fromUTF8(other); }
+    bool equalToUTF8StringIgnoringCase(const char* other) { return equalIgnoringCase(m_string, other); }
+
+    const WTF::String&amp; string() const { return m_string; }
+
+    JSStringRef createJSString() const
+    {
+        JSC::initializeThreading();
+        return OpaqueJSString::create(m_string).leakRef();
+    }
+
+private:
+    String()
+        : m_string()
+    {
+    }
+
+    String(const WTF::String&amp; string)
+        : m_string(!string.impl() ? WTF::String(StringImpl::empty()) : string)
+    {
+    }
+
+    WTF::String m_string;
+};
+
+} // namespace WebKit
+
+#endif // APIString_h
</ins></span></pre></div>
<a id="trunkSourceWebKit2SharedCocoaWKNSStringh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/Cocoa/WKNSString.h (160607 => 160608)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/Cocoa/WKNSString.h        2013-12-15 00:43:57 UTC (rev 160607)
+++ trunk/Source/WebKit2/Shared/Cocoa/WKNSString.h        2013-12-15 01:09:47 UTC (rev 160608)
</span><span class="lines">@@ -27,11 +27,11 @@
</span><span class="cx"> 
</span><span class="cx"> #if WK_API_ENABLED
</span><span class="cx"> 
</span><ins>+#import &quot;APIString.h&quot;
</ins><span class="cx"> #import &quot;WKObject.h&quot;
</span><del>-#import &quot;WebString.h&quot;
</del><span class="cx"> 
</span><span class="cx"> namespace WebKit {
</span><del>-inline NSString *wrapper(WebString&amp; string) { ASSERT([string.wrapper() isKindOfClass:[NSString class]]); return (NSString *)string.wrapper(); }
</del><ins>+inline NSString *wrapper(API::String&amp; string) { ASSERT([string.wrapper() isKindOfClass:[NSString class]]); return (NSString *)string.wrapper(); }
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> @interface WKNSString : WKObject &lt;NSCopying&gt;
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedCocoaWKNSStringmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/Cocoa/WKNSString.mm (160607 => 160608)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/Cocoa/WKNSString.mm        2013-12-15 00:43:57 UTC (rev 160607)
+++ trunk/Source/WebKit2/Shared/Cocoa/WKNSString.mm        2013-12-15 01:09:47 UTC (rev 160608)
</span><span class="lines">@@ -28,7 +28,7 @@
</span><span class="cx"> 
</span><span class="cx"> #if WK_API_ENABLED
</span><span class="cx"> 
</span><del>-#import &quot;WebString.h&quot;
</del><ins>+#import &quot;APIString.h&quot;
</ins><span class="cx"> #import &lt;wtf/RetainPtr.h&gt;
</span><span class="cx"> 
</span><span class="cx"> using namespace WebKit;
</span><span class="lines">@@ -37,7 +37,7 @@
</span><span class="cx"> 
</span><span class="cx"> - (NSObject *)_web_createTarget
</span><span class="cx"> {
</span><del>-    const String&amp; string = static_cast&lt;WebString*&gt;(&amp;self._apiObject)-&gt;string();
</del><ins>+    const String&amp; string = static_cast&lt;API::String*&gt;(&amp;self._apiObject)-&gt;string();
</ins><span class="cx">     return (NSString *)CFMakeCollectable(string.createCFString().leakRef());
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedImmutableDictionarycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/ImmutableDictionary.cpp (160607 => 160608)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/ImmutableDictionary.cpp        2013-12-15 00:43:57 UTC (rev 160607)
+++ trunk/Source/WebKit2/Shared/ImmutableDictionary.cpp        2013-12-15 01:09:47 UTC (rev 160608)
</span><span class="lines">@@ -27,7 +27,7 @@
</span><span class="cx"> #include &quot;ImmutableDictionary.h&quot;
</span><span class="cx"> 
</span><span class="cx"> #include &quot;APIArray.h&quot;
</span><del>-#include &quot;WebString.h&quot;
</del><ins>+#include &quot;APIString.h&quot;
</ins><span class="cx"> 
</span><span class="cx"> namespace WebKit {
</span><span class="cx"> 
</span><span class="lines">@@ -59,7 +59,7 @@
</span><span class="cx">     keys.reserveInitialCapacity(m_map.size());
</span><span class="cx"> 
</span><span class="cx">     for (const auto&amp; key : m_map.keys())
</span><del>-        keys.uncheckedAppend(WebString::create(key));
</del><ins>+        keys.uncheckedAppend(API::String::create(key));
</ins><span class="cx"> 
</span><span class="cx">     return API::Array::create(std::move(keys));
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedPluginsNetscapePluginInformationcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/Plugins/Netscape/PluginInformation.cpp (160607 => 160608)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/Plugins/Netscape/PluginInformation.cpp        2013-12-15 00:43:57 UTC (rev 160607)
+++ trunk/Source/WebKit2/Shared/Plugins/Netscape/PluginInformation.cpp        2013-12-15 01:09:47 UTC (rev 160608)
</span><span class="lines">@@ -29,10 +29,10 @@
</span><span class="cx"> #if ENABLE(NETSCAPE_PLUGIN_API)
</span><span class="cx"> 
</span><span class="cx"> #include &quot;APINumber.h&quot;
</span><ins>+#include &quot;APIString.h&quot;
</ins><span class="cx"> #include &quot;PluginInfoStore.h&quot;
</span><span class="cx"> #include &quot;PluginModuleInfo.h&quot;
</span><span class="cx"> #include &quot;WKAPICast.h&quot;
</span><del>-#include &quot;WebString.h&quot;
</del><span class="cx"> #include &quot;WebURL.h&quot;
</span><span class="cx"> #include &lt;wtf/text/WTFString.h&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -111,8 +111,8 @@
</span><span class="cx"> void getPluginModuleInformation(const PluginModuleInfo&amp; plugin, ImmutableDictionary::MapType&amp; map)
</span><span class="cx"> {
</span><span class="cx"> #if ENABLE(NETSCAPE_PLUGIN_API)
</span><del>-    map.set(pluginInformationPathKey(), WebString::create(plugin.path));
-    map.set(pluginInformationDisplayNameKey(), WebString::create(plugin.info.name));
</del><ins>+    map.set(pluginInformationPathKey(), API::String::create(plugin.path));
+    map.set(pluginInformationDisplayNameKey(), API::String::create(plugin.info.name));
</ins><span class="cx">     map.set(pluginInformationDefaultLoadPolicyKey(), API::UInt64::create(toWKPluginLoadPolicy(PluginInfoStore::defaultLoadPolicyForPlugin(plugin))));
</span><span class="cx"> 
</span><span class="cx">     getPlatformPluginModuleInformation(plugin, map);
</span><span class="lines">@@ -138,7 +138,7 @@
</span><span class="cx">     if (!frameURLString.isEmpty())
</span><span class="cx">         map.set(pluginInformationFrameURLKey(), WebURL::create(frameURLString));
</span><span class="cx">     if (!mimeType.isEmpty())
</span><del>-        map.set(pluginInformationMIMETypeKey(), WebString::create(mimeType));
</del><ins>+        map.set(pluginInformationMIMETypeKey(), API::String::create(mimeType));
</ins><span class="cx">     if (!pageURLString.isEmpty())
</span><span class="cx">         map.set(pluginInformationPageURLKey(), WebURL::create(pageURLString));
</span><span class="cx">     if (!pluginspageAttributeURLString.isEmpty())
</span><span class="lines">@@ -157,7 +157,7 @@
</span><span class="cx">     if (!frameURLString.isEmpty())
</span><span class="cx">         map.set(pluginInformationFrameURLKey(), WebURL::create(frameURLString));
</span><span class="cx">     if (!mimeType.isEmpty())
</span><del>-        map.set(pluginInformationMIMETypeKey(), WebString::create(mimeType));
</del><ins>+        map.set(pluginInformationMIMETypeKey(), API::String::create(mimeType));
</ins><span class="cx">     if (!pageURLString.isEmpty())
</span><span class="cx">         map.set(pluginInformationPageURLKey(), WebURL::create(pageURLString));
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedPluginsNetscapemacPluginInformationMacmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/Plugins/Netscape/mac/PluginInformationMac.mm (160607 => 160608)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/Plugins/Netscape/mac/PluginInformationMac.mm        2013-12-15 00:43:57 UTC (rev 160607)
+++ trunk/Source/WebKit2/Shared/Plugins/Netscape/mac/PluginInformationMac.mm        2013-12-15 01:09:47 UTC (rev 160608)
</span><span class="lines">@@ -29,19 +29,19 @@
</span><span class="cx"> #if ENABLE(NETSCAPE_PLUGIN_API)
</span><span class="cx"> 
</span><span class="cx"> #import &quot;APINumber.h&quot;
</span><ins>+#import &quot;APIString.h&quot;
</ins><span class="cx"> #import &quot;PluginModuleInfo.h&quot;
</span><span class="cx"> #import &quot;PluginSandboxProfile.h&quot;
</span><span class="cx"> #import &quot;StringUtilities.h&quot;
</span><del>-#import &quot;WebString.h&quot;
</del><span class="cx"> #import &lt;WebKitSystemInterface.h&gt;
</span><span class="cx"> 
</span><span class="cx"> namespace WebKit {
</span><span class="cx"> 
</span><span class="cx"> void getPlatformPluginModuleInformation(const PluginModuleInfo&amp; plugin, ImmutableDictionary::MapType&amp; map)
</span><span class="cx"> {
</span><del>-    map.set(pluginInformationBundleIdentifierKey(), WebString::create(plugin.bundleIdentifier));
-    map.set(pluginInformationBundleVersionKey(), WebString::create(plugin.versionString));
-    map.set(pluginInformationBundleShortVersionKey(), WebString::create(plugin.shortVersionString));
</del><ins>+    map.set(pluginInformationBundleIdentifierKey(), API::String::create(plugin.bundleIdentifier));
+    map.set(pluginInformationBundleVersionKey(), API::String::create(plugin.versionString));
+    map.set(pluginInformationBundleShortVersionKey(), API::String::create(plugin.shortVersionString));
</ins><span class="cx">     map.set(pluginInformationUpdatePastLastBlockedVersionIsKnownAvailableKey(), API::Boolean::create(WKIsPluginUpdateAvailable(nsStringFromWebCoreString(plugin.bundleIdentifier))));
</span><span class="cx">     map.set(pluginInformationHasSandboxProfileKey(), API::Boolean::create(pluginHasSandboxProfile(plugin.bundleIdentifier)));
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedUserDatacpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/UserData.cpp (160607 => 160608)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/UserData.cpp        2013-12-15 00:43:57 UTC (rev 160607)
+++ trunk/Source/WebKit2/Shared/UserData.cpp        2013-12-15 01:09:47 UTC (rev 160608)
</span><span class="lines">@@ -30,11 +30,11 @@
</span><span class="cx"> #include &quot;APIFrameHandle.h&quot;
</span><span class="cx"> #include &quot;APIGeometry.h&quot;
</span><span class="cx"> #include &quot;APINumber.h&quot;
</span><ins>+#include &quot;APIString.h&quot;
</ins><span class="cx"> #include &quot;ArgumentCoders.h&quot;
</span><span class="cx"> #include &quot;ArgumentEncoder.h&quot;
</span><span class="cx"> #include &quot;MutableDictionary.h&quot;
</span><span class="cx"> #include &quot;WebSerializedScriptValue.h&quot;
</span><del>-#include &quot;WebString.h&quot;
</del><span class="cx"> #include &quot;WebURL.h&quot;
</span><span class="cx"> 
</span><span class="cx"> namespace WebKit {
</span><span class="lines">@@ -153,7 +153,7 @@
</span><span class="cx">         break;
</span><span class="cx"> 
</span><span class="cx">     case API::Object::Type::String: {
</span><del>-        auto&amp; string = static_cast&lt;const WebString&amp;&gt;(object);
</del><ins>+        auto&amp; string = static_cast&lt;const API::String&amp;&gt;(object);
</ins><span class="cx">         encoder &lt;&lt; string.string();
</span><span class="cx">         break;
</span><span class="cx">     }
</span><span class="lines">@@ -274,7 +274,7 @@
</span><span class="cx">         if (!decoder.decode(string))
</span><span class="cx">             return false;
</span><span class="cx"> 
</span><del>-        result = WebString::create(string);
</del><ins>+        result = API::String::create(string);
</ins><span class="cx">         break;
</span><span class="cx">     }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedUserMessageCodersh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/UserMessageCoders.h (160607 => 160608)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/UserMessageCoders.h        2013-12-15 00:43:57 UTC (rev 160607)
+++ trunk/Source/WebKit2/Shared/UserMessageCoders.h        2013-12-15 01:09:47 UTC (rev 160608)
</span><span class="lines">@@ -29,6 +29,7 @@
</span><span class="cx"> #include &quot;APIArray.h&quot;
</span><span class="cx"> #include &quot;APIGeometry.h&quot;
</span><span class="cx"> #include &quot;APINumber.h&quot;
</span><ins>+#include &quot;APIString.h&quot;
</ins><span class="cx"> #include &quot;ArgumentDecoder.h&quot;
</span><span class="cx"> #include &quot;ArgumentEncoder.h&quot;
</span><span class="cx"> #include &quot;DataReference.h&quot;
</span><span class="lines">@@ -42,7 +43,6 @@
</span><span class="cx"> #include &quot;WebRenderLayer.h&quot;
</span><span class="cx"> #include &quot;WebRenderObject.h&quot;
</span><span class="cx"> #include &quot;WebSerializedScriptValue.h&quot;
</span><del>-#include &quot;WebString.h&quot;
</del><span class="cx"> #include &quot;WebURL.h&quot;
</span><span class="cx"> #include &quot;WebURLRequest.h&quot;
</span><span class="cx"> #include &quot;WebURLResponse.h&quot;
</span><span class="lines">@@ -103,7 +103,7 @@
</span><span class="cx">             return true;
</span><span class="cx">         }
</span><span class="cx">         case API::Object::Type::String: {
</span><del>-            WebString* string = static_cast&lt;WebString*&gt;(m_root);
</del><ins>+            API::String* string = static_cast&lt;API::String*&gt;(m_root);
</ins><span class="cx">             encoder &lt;&lt; string-&gt;string();
</span><span class="cx">             return true;
</span><span class="cx">         }
</span><span class="lines">@@ -314,7 +314,7 @@
</span><span class="cx">             String string;
</span><span class="cx">             if (!decoder.decode(string))
</span><span class="cx">                 return false;
</span><del>-            coder.m_root = WebString::create(string);
</del><ins>+            coder.m_root = API::String::create(string);
</ins><span class="cx">             break;
</span><span class="cx">         }
</span><span class="cx">         case API::Object::Type::SerializedScriptValue: {
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedWebArchiveResourceh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/WebArchiveResource.h (160607 => 160608)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/WebArchiveResource.h        2013-12-15 00:43:57 UTC (rev 160607)
+++ trunk/Source/WebKit2/Shared/WebArchiveResource.h        2013-12-15 01:09:47 UTC (rev 160608)
</span><span class="lines">@@ -40,7 +40,6 @@
</span><span class="cx"> namespace WebKit {
</span><span class="cx"> 
</span><span class="cx"> class WebData;
</span><del>-class WebString;
</del><span class="cx"> class WebURL;
</span><span class="cx"> 
</span><span class="cx"> class WebArchiveResource : public API::ObjectImpl&lt;API::Object::Type::WebArchiveResource&gt; {
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedWebOpenPanelParameterscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/WebOpenPanelParameters.cpp (160607 => 160608)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/WebOpenPanelParameters.cpp        2013-12-15 00:43:57 UTC (rev 160607)
+++ trunk/Source/WebKit2/Shared/WebOpenPanelParameters.cpp        2013-12-15 01:09:47 UTC (rev 160608)
</span><span class="lines">@@ -28,7 +28,7 @@
</span><span class="cx"> #include &quot;WebOpenPanelParameters.h&quot;
</span><span class="cx"> 
</span><span class="cx"> #include &quot;APIArray.h&quot;
</span><del>-#include &quot;WebString.h&quot;
</del><ins>+#include &quot;APIString.h&quot;
</ins><span class="cx"> #include &lt;wtf/Vector.h&gt;
</span><span class="cx"> 
</span><span class="cx"> using namespace WebCore;
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedWebRenderLayercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/WebRenderLayer.cpp (160607 => 160608)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/WebRenderLayer.cpp        2013-12-15 00:43:57 UTC (rev 160607)
+++ trunk/Source/WebKit2/Shared/WebRenderLayer.cpp        2013-12-15 01:09:47 UTC (rev 160608)
</span><span class="lines">@@ -27,8 +27,8 @@
</span><span class="cx"> #include &quot;WebRenderLayer.h&quot;
</span><span class="cx"> 
</span><span class="cx"> #include &quot;APIArray.h&quot;
</span><ins>+#include &quot;APIString.h&quot;
</ins><span class="cx"> #include &quot;WebPage.h&quot;
</span><del>-#include &quot;WebString.h&quot;
</del><span class="cx"> #include &lt;WebCore/Frame.h&gt;
</span><span class="cx"> #include &lt;WebCore/FrameLoader.h&gt;
</span><span class="cx"> #include &lt;WebCore/FrameLoaderClient.h&gt;
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedWebRenderObjectcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/WebRenderObject.cpp (160607 => 160608)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/WebRenderObject.cpp        2013-12-15 00:43:57 UTC (rev 160607)
+++ trunk/Source/WebKit2/Shared/WebRenderObject.cpp        2013-12-15 01:09:47 UTC (rev 160608)
</span><span class="lines">@@ -27,8 +27,8 @@
</span><span class="cx"> #include &quot;WebRenderObject.h&quot;
</span><span class="cx"> 
</span><span class="cx"> #include &quot;APIArray.h&quot;
</span><ins>+#include &quot;APIString.h&quot;
</ins><span class="cx"> #include &quot;WebPage.h&quot;
</span><del>-#include &quot;WebString.h&quot;
</del><span class="cx"> #include &lt;WebCore/Frame.h&gt;
</span><span class="cx"> #include &lt;WebCore/FrameLoader.h&gt;
</span><span class="cx"> #include &lt;WebCore/FrameLoaderClient.h&gt;
</span><span class="lines">@@ -76,7 +76,7 @@
</span><span class="cx">                 classNames.reserveInitialCapacity(element-&gt;classNames().size());
</span><span class="cx"> 
</span><span class="cx">                 for (size_t i = 0, size = element-&gt;classNames().size(); i &lt; size; ++i)
</span><del>-                    classNames.append(WebString::create(element-&gt;classNames()[i]));
</del><ins>+                    classNames.append(API::String::create(element-&gt;classNames()[i]));
</ins><span class="cx"> 
</span><span class="cx">                 m_elementClassNames = API::Array::create(std::move(classNames));
</span><span class="cx">             }
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedWebStringh"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebKit2/Shared/WebString.h (160607 => 160608)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/WebString.h        2013-12-15 00:43:57 UTC (rev 160607)
+++ trunk/Source/WebKit2/Shared/WebString.h        2013-12-15 01:09:47 UTC (rev 160608)
</span><span class="lines">@@ -1,118 +0,0 @@
</span><del>-/*
- * Copyright (C) 2010 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef WebString_h
-#define WebString_h
-
-#include &quot;APIObject.h&quot;
-#include &lt;JavaScriptCore/InitializeThreading.h&gt;
-#include &lt;JavaScriptCore/JSStringRef.h&gt;
-#include &lt;JavaScriptCore/OpaqueJSString.h&gt;
-#include &lt;wtf/PassRefPtr.h&gt;
-#include &lt;wtf/text/WTFString.h&gt;
-#include &lt;wtf/unicode/UTF8.h&gt;
-
-namespace WebKit {
-
-// WebString - A string type suitable for vending to an API.
-
-class WebString : public API::ObjectImpl&lt;API::Object::Type::String&gt; {
-public:
-    static PassRefPtr&lt;WebString&gt; createNull()
-    {
-        return adoptRef(new WebString());
-    }
-
-    static PassRefPtr&lt;WebString&gt; create(const String&amp; string)
-    {
-        return adoptRef(new WebString(string));
-    }
-
-    static PassRefPtr&lt;WebString&gt; create(JSStringRef jsStringRef)
-    {
-        return adoptRef(new WebString(String(jsStringRef-&gt;string())));
-    }
-
-    static PassRefPtr&lt;WebString&gt; createFromUTF8String(const char* string)
-    {
-        return adoptRef(new WebString(String::fromUTF8(string)));
-    }
-
-    bool isNull() const { return m_string.isNull(); }
-    bool isEmpty() const { return m_string.isEmpty(); }
-    
-    size_t length() const { return m_string.length(); }
-    size_t getCharacters(UChar* buffer, size_t bufferLength) const
-    {
-        if (!bufferLength)
-            return 0;
-        bufferLength = std::min(bufferLength, static_cast&lt;size_t&gt;(m_string.length()));
-        memcpy(buffer, m_string.characters(), bufferLength * sizeof(UChar));
-        return bufferLength;
-    }
-
-    size_t maximumUTF8CStringSize() const { return m_string.length() * 3 + 1; }
-    size_t getUTF8CString(char* buffer, size_t bufferSize)
-    {
-        if (!bufferSize)
-            return 0;
-        char* p = buffer;
-        const UChar* d = m_string.characters();
-        WTF::Unicode::ConversionResult result = WTF::Unicode::convertUTF16ToUTF8(&amp;d, d + m_string.length(), &amp;p, p + bufferSize - 1, /* strict */ true);
-        *p++ = '\0';
-        if (result != WTF::Unicode::conversionOK &amp;&amp; result != WTF::Unicode::targetExhausted)
-            return 0;
-        return p - buffer;
-    }
-
-    bool equal(WebString* other) { return m_string == other-&gt;m_string; }
-    bool equalToUTF8String(const char* other) { return m_string == String::fromUTF8(other); }
-    bool equalToUTF8StringIgnoringCase(const char* other) { return equalIgnoringCase(m_string, other); }
-
-    const String&amp; string() const { return m_string; }
-
-    JSStringRef createJSString() const
-    {
-        JSC::initializeThreading();
-        return OpaqueJSString::create(m_string).leakRef();
-    }
-
-private:
-    WebString()
-        : m_string()
-    {
-    }
-
-    WebString(const String&amp; string)
-        : m_string(!string.impl() ? String(StringImpl::empty()) : string)
-    {
-    }
-
-    String m_string;
-};
-
-} // namespace WebKit
-
-#endif // WebString_h
</del></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPICWKCredentialcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/C/WKCredential.cpp (160607 => 160608)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/C/WKCredential.cpp        2013-12-15 00:43:57 UTC (rev 160607)
+++ trunk/Source/WebKit2/UIProcess/API/C/WKCredential.cpp        2013-12-15 01:09:47 UTC (rev 160608)
</span><span class="lines">@@ -26,9 +26,9 @@
</span><span class="cx"> #include &quot;config.h&quot;
</span><span class="cx"> #include &quot;WKCredential.h&quot;
</span><span class="cx"> 
</span><ins>+#include &quot;APIString.h&quot;
</ins><span class="cx"> #include &quot;WebCertificateInfo.h&quot;
</span><span class="cx"> #include &quot;WebCredential.h&quot;
</span><del>-#include &quot;WebString.h&quot;
</del><span class="cx"> #include &quot;WKAPICast.h&quot;
</span><span class="cx"> 
</span><span class="cx"> using namespace WebKit;
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPICWKDatabaseManagercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/C/WKDatabaseManager.cpp (160607 => 160608)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/C/WKDatabaseManager.cpp        2013-12-15 00:43:57 UTC (rev 160607)
+++ trunk/Source/WebKit2/UIProcess/API/C/WKDatabaseManager.cpp        2013-12-15 01:09:47 UTC (rev 160608)
</span><span class="lines">@@ -43,7 +43,7 @@
</span><span class="cx"> WKStringRef WKDatabaseManagerGetOriginKey()
</span><span class="cx"> {
</span><span class="cx"> #if ENABLE(SQL_DATABASE)
</span><del>-    static WebString* key = WebString::create(WebDatabaseManagerProxy::originKey()).leakRef();
</del><ins>+    static API::String* key = API::String::create(WebDatabaseManagerProxy::originKey()).leakRef();
</ins><span class="cx">     return toAPI(key);
</span><span class="cx"> #else
</span><span class="cx">     return 0;
</span><span class="lines">@@ -53,7 +53,7 @@
</span><span class="cx"> WKStringRef WKDatabaseManagerGetOriginQuotaKey()
</span><span class="cx"> {
</span><span class="cx"> #if ENABLE(SQL_DATABASE)
</span><del>-    static WebString* key = WebString::create(WebDatabaseManagerProxy::originQuotaKey()).leakRef();
</del><ins>+    static API::String* key = API::String::create(WebDatabaseManagerProxy::originQuotaKey()).leakRef();
</ins><span class="cx">     return toAPI(key);
</span><span class="cx"> #else
</span><span class="cx">     return 0;
</span><span class="lines">@@ -63,7 +63,7 @@
</span><span class="cx"> WKStringRef WKDatabaseManagerGetOriginUsageKey()
</span><span class="cx"> {
</span><span class="cx"> #if ENABLE(SQL_DATABASE)
</span><del>-    static WebString* key = WebString::create(WebDatabaseManagerProxy::originUsageKey()).leakRef();
</del><ins>+    static API::String* key = API::String::create(WebDatabaseManagerProxy::originUsageKey()).leakRef();
</ins><span class="cx">     return toAPI(key);
</span><span class="cx"> #else
</span><span class="cx">     return 0;
</span><span class="lines">@@ -73,7 +73,7 @@
</span><span class="cx"> WKStringRef WKDatabaseManagerGetDatabaseDetailsKey()
</span><span class="cx"> {
</span><span class="cx"> #if ENABLE(SQL_DATABASE)
</span><del>-    static WebString* key = WebString::create(WebDatabaseManagerProxy::databaseDetailsKey()).leakRef();
</del><ins>+    static API::String* key = API::String::create(WebDatabaseManagerProxy::databaseDetailsKey()).leakRef();
</ins><span class="cx">     return toAPI(key);
</span><span class="cx"> #else
</span><span class="cx">     return 0;
</span><span class="lines">@@ -83,7 +83,7 @@
</span><span class="cx"> WKStringRef WKDatabaseManagerGetDatabaseDetailsNameKey()
</span><span class="cx"> {
</span><span class="cx"> #if ENABLE(SQL_DATABASE)
</span><del>-    static WebString* key = WebString::create(WebDatabaseManagerProxy::databaseDetailsNameKey()).leakRef();
</del><ins>+    static API::String* key = API::String::create(WebDatabaseManagerProxy::databaseDetailsNameKey()).leakRef();
</ins><span class="cx">     return toAPI(key);
</span><span class="cx"> #else
</span><span class="cx">     return 0;
</span><span class="lines">@@ -93,7 +93,7 @@
</span><span class="cx"> WKStringRef WKDatabaseManagerGetDatabaseDetailsDisplayNameKey()
</span><span class="cx"> {
</span><span class="cx"> #if ENABLE(SQL_DATABASE)
</span><del>-    static WebString* key = WebString::create(WebDatabaseManagerProxy::databaseDetailsDisplayNameKey()).leakRef();
</del><ins>+    static API::String* key = API::String::create(WebDatabaseManagerProxy::databaseDetailsDisplayNameKey()).leakRef();
</ins><span class="cx">     return toAPI(key);
</span><span class="cx"> #else
</span><span class="cx">     return 0;
</span><span class="lines">@@ -103,7 +103,7 @@
</span><span class="cx"> WKStringRef WKDatabaseManagerGetDatabaseDetailsExpectedUsageKey()
</span><span class="cx"> {
</span><span class="cx"> #if ENABLE(SQL_DATABASE)
</span><del>-    static WebString* key = WebString::create(WebDatabaseManagerProxy::databaseDetailsExpectedUsageKey()).leakRef();
</del><ins>+    static API::String* key = API::String::create(WebDatabaseManagerProxy::databaseDetailsExpectedUsageKey()).leakRef();
</ins><span class="cx">     return toAPI(key);
</span><span class="cx"> #else
</span><span class="cx">     return 0;
</span><span class="lines">@@ -113,7 +113,7 @@
</span><span class="cx"> WKStringRef WKDatabaseManagerGetDatabaseDetailsCurrentUsageKey()
</span><span class="cx"> {
</span><span class="cx"> #if ENABLE(SQL_DATABASE)
</span><del>-    static WebString* key = WebString::create(WebDatabaseManagerProxy::databaseDetailsCurrentUsageKey()).leakRef();
</del><ins>+    static API::String* key = API::String::create(WebDatabaseManagerProxy::databaseDetailsCurrentUsageKey()).leakRef();
</ins><span class="cx">     return toAPI(key);
</span><span class="cx"> #else
</span><span class="cx">     return 0;
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPICWKPagecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/C/WKPage.cpp (160607 => 160608)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/C/WKPage.cpp        2013-12-15 00:43:57 UTC (rev 160607)
+++ trunk/Source/WebKit2/UIProcess/API/C/WKPage.cpp        2013-12-15 01:09:47 UTC (rev 160608)
</span><span class="lines">@@ -315,13 +315,13 @@
</span><span class="cx"> 
</span><span class="cx"> WKStringRef WKPageGetSessionHistoryURLValueType()
</span><span class="cx"> {
</span><del>-    static WebString* sessionHistoryURLValueType = WebString::create(&quot;SessionHistoryURL&quot;).leakRef();
</del><ins>+    static API::String* sessionHistoryURLValueType = API::String::create(&quot;SessionHistoryURL&quot;).leakRef();
</ins><span class="cx">     return toAPI(sessionHistoryURLValueType);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> WKStringRef WKPageGetSessionBackForwardListItemValueType()
</span><span class="cx"> {
</span><del>-    static WebString* sessionBackForwardListValueType = WebString::create(&quot;SessionBackForwardListItem&quot;).leakRef();
</del><ins>+    static API::String* sessionBackForwardListValueType = API::String::create(&quot;SessionBackForwardListItem&quot;).leakRef();
</ins><span class="cx">     return toAPI(sessionBackForwardListValueType);
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPICmacWKContextPrivateMacmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/C/mac/WKContextPrivateMac.mm (160607 => 160608)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/C/mac/WKContextPrivateMac.mm        2013-12-15 00:43:57 UTC (rev 160607)
+++ trunk/Source/WebKit2/UIProcess/API/C/mac/WKContextPrivateMac.mm        2013-12-15 01:09:47 UTC (rev 160608)
</span><span class="lines">@@ -28,6 +28,7 @@
</span><span class="cx"> 
</span><span class="cx"> #import &quot;APIArray.h&quot;
</span><span class="cx"> #import &quot;APINumber.h&quot;
</span><ins>+#import &quot;APIString.h&quot;
</ins><span class="cx"> #import &quot;ImmutableDictionary.h&quot;
</span><span class="cx"> #import &quot;PluginInfoStore.h&quot;
</span><span class="cx"> #import &quot;PluginInformation.h&quot;
</span><span class="lines">@@ -38,7 +39,6 @@
</span><span class="cx"> #import &quot;WKSharedAPICast.h&quot;
</span><span class="cx"> #import &quot;WKStringCF.h&quot;
</span><span class="cx"> #import &quot;WebContext.h&quot;
</span><del>-#import &quot;WebString.h&quot;
</del><span class="cx"> #import &lt;WebKitSystemInterface.h&gt;
</span><span class="cx"> #import &lt;wtf/RetainPtr.h&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPICocoaWKBrowsingContextGroupmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/Cocoa/WKBrowsingContextGroup.mm (160607 => 160608)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/Cocoa/WKBrowsingContextGroup.mm        2013-12-15 00:43:57 UTC (rev 160607)
+++ trunk/Source/WebKit2/UIProcess/API/Cocoa/WKBrowsingContextGroup.mm        2013-12-15 01:09:47 UTC (rev 160608)
</span><span class="lines">@@ -30,6 +30,7 @@
</span><span class="cx"> #if WK_API_ENABLED
</span><span class="cx"> 
</span><span class="cx"> #import &quot;APIArray.h&quot;
</span><ins>+#import &quot;APIString.h&quot;
</ins><span class="cx"> #import &quot;WKArray.h&quot;
</span><span class="cx"> #import &quot;WKPageGroup.h&quot;
</span><span class="cx"> #import &quot;WKPreferences.h&quot;
</span><span class="lines">@@ -38,7 +39,6 @@
</span><span class="cx"> #import &quot;WKStringCF.h&quot;
</span><span class="cx"> #import &quot;WKURL.h&quot;
</span><span class="cx"> #import &quot;WKURLCF.h&quot;
</span><del>-#import &quot;WebString.h&quot;
</del><span class="cx"> #import &lt;wtf/Vector.h&gt;
</span><span class="cx"> 
</span><span class="cx"> using namespace WebKit;
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPINavigationDatah"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/APINavigationData.h (160607 => 160608)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/APINavigationData.h        2013-12-15 00:43:57 UTC (rev 160607)
+++ trunk/Source/WebKit2/UIProcess/APINavigationData.h        2013-12-15 01:09:47 UTC (rev 160608)
</span><span class="lines">@@ -41,8 +41,8 @@
</span><span class="cx"> 
</span><span class="cx">     virtual ~NavigationData();
</span><span class="cx"> 
</span><del>-    String title() const { return m_store.title; }
-    String url() const { return m_store.url; }
</del><ins>+    WTF::String title() const { return m_store.title; }
+    WTF::String url() const { return m_store.url; }
</ins><span class="cx">     const WebCore::ResourceRequest&amp; originalRequest() const { return m_store.originalRequest; }
</span><span class="cx">     const WebCore::ResourceResponse&amp; response() const { return m_store.response; }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAuthenticationWebCredentialh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/Authentication/WebCredential.h (160607 => 160608)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/Authentication/WebCredential.h        2013-12-15 00:43:57 UTC (rev 160607)
+++ trunk/Source/WebKit2/UIProcess/Authentication/WebCredential.h        2013-12-15 01:09:47 UTC (rev 160608)
</span><span class="lines">@@ -27,12 +27,10 @@
</span><span class="cx"> #define WebCredential_h
</span><span class="cx"> 
</span><span class="cx"> #include &quot;APIObject.h&quot;
</span><del>-#include &quot;WebString.h&quot;
-
</del><ins>+#include &quot;APIString.h&quot;
</ins><span class="cx"> #include &lt;WebCore/Credential.h&gt;
</span><span class="cx"> #include &lt;wtf/PassRefPtr.h&gt;
</span><span class="cx"> 
</span><del>-
</del><span class="cx"> namespace WebKit {
</span><span class="cx"> 
</span><span class="cx"> class WebCertificateInfo;
</span><span class="lines">@@ -46,7 +44,7 @@
</span><span class="cx">         return adoptRef(new WebCredential(credential));
</span><span class="cx">     }
</span><span class="cx">     
</span><del>-    static PassRefPtr&lt;WebCredential&gt; create(WebString* username, WebString* password, WebCore::CredentialPersistence persistence)
</del><ins>+    static PassRefPtr&lt;WebCredential&gt; create(API::String* username, API::String* password, WebCore::CredentialPersistence persistence)
</ins><span class="cx">     {
</span><span class="cx">         return adoptRef(new WebCredential(WebCore::Credential(username-&gt;string(), password-&gt;string(), persistence)));
</span><span class="cx">     }
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessNotificationsWebNotificationManagerProxycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/Notifications/WebNotificationManagerProxy.cpp (160607 => 160608)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/Notifications/WebNotificationManagerProxy.cpp        2013-12-15 00:43:57 UTC (rev 160607)
+++ trunk/Source/WebKit2/UIProcess/Notifications/WebNotificationManagerProxy.cpp        2013-12-15 01:09:47 UTC (rev 160608)
</span><span class="lines">@@ -95,7 +95,7 @@
</span><span class="cx">     permissions.clear();
</span><span class="cx">     RefPtr&lt;API::Array&gt; knownOrigins = knownPermissions-&gt;keys();
</span><span class="cx">     for (size_t i = 0; i &lt; knownOrigins-&gt;size(); ++i) {
</span><del>-        WebString* origin = knownOrigins-&gt;at&lt;WebString&gt;(i);
</del><ins>+        API::String* origin = knownOrigins-&gt;at&lt;API::String&gt;(i);
</ins><span class="cx">         permissions.set(origin-&gt;string(), knownPermissions-&gt;get&lt;API::Boolean&gt;(origin-&gt;string())-&gt;value());
</span><span class="cx">     }
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessPluginsPlugInAutoStartProvidercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/Plugins/PlugInAutoStartProvider.cpp (160607 => 160608)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/Plugins/PlugInAutoStartProvider.cpp        2013-12-15 00:43:57 UTC (rev 160607)
+++ trunk/Source/WebKit2/UIProcess/Plugins/PlugInAutoStartProvider.cpp        2013-12-15 01:09:47 UTC (rev 160608)
</span><span class="lines">@@ -135,9 +135,9 @@
</span><span class="cx"> {
</span><span class="cx">     m_autoStartOrigins.clear();
</span><span class="cx">     for (size_t i = 0, length = originList.size(); i &lt; length; ++i) {
</span><del>-        if (originList.at(i)-&gt;type() != WebString::APIType)
</del><ins>+        if (originList.at(i)-&gt;type() != API::String::APIType)
</ins><span class="cx">             continue;
</span><del>-        m_autoStartOrigins.append(static_cast&lt;WebString*&gt;(originList.at(i))-&gt;string());
</del><ins>+        m_autoStartOrigins.append(static_cast&lt;API::String*&gt;(originList.at(i))-&gt;string());
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessPluginsWebPluginSiteDataManagercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/Plugins/WebPluginSiteDataManager.cpp (160607 => 160608)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/Plugins/WebPluginSiteDataManager.cpp        2013-12-15 00:43:57 UTC (rev 160607)
+++ trunk/Source/WebKit2/UIProcess/Plugins/WebPluginSiteDataManager.cpp        2013-12-15 01:09:47 UTC (rev 160608)
</span><span class="lines">@@ -186,7 +186,7 @@
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         for (size_t i = 0; i &lt; sites-&gt;size(); ++i) {
</span><del>-            if (WebString* site = sites-&gt;at&lt;WebString&gt;(i))
</del><ins>+            if (API::String* site = sites-&gt;at&lt;API::String&gt;(i))
</ins><span class="cx">                 sitesVector.append(site-&gt;string());
</span><span class="cx">         }
</span><span class="cx">     }
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessWebContextcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/WebContext.cpp (160607 => 160608)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/WebContext.cpp        2013-12-15 00:43:57 UTC (rev 160607)
+++ trunk/Source/WebKit2/UIProcess/WebContext.cpp        2013-12-15 01:09:47 UTC (rev 160608)
</span><span class="lines">@@ -488,7 +488,7 @@
</span><span class="cx">     messageNameStringBuilder.append(&quot;.&quot;);
</span><span class="cx">     messageNameStringBuilder.append(messageName.data(), messageName.size());
</span><span class="cx"> 
</span><del>-    s_invalidMessageCallback(toAPI(WebString::create(messageNameStringBuilder.toString()).get()));
</del><ins>+    s_invalidMessageCallback(toAPI(API::String::create(messageNameStringBuilder.toString()).get()));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void WebContext::processDidCachePage(WebProcessProxy* process)
</span><span class="lines">@@ -1277,20 +1277,20 @@
</span><span class="cx"> 
</span><span class="cx">     for (const auto&amp; pluginModule : pluginModules) {
</span><span class="cx">         ImmutableDictionary::MapType map;
</span><del>-        map.set(ASCIILiteral(&quot;path&quot;), WebString::create(pluginModule.path));
-        map.set(ASCIILiteral(&quot;name&quot;), WebString::create(pluginModule.info.name));
-        map.set(ASCIILiteral(&quot;file&quot;), WebString::create(pluginModule.info.file));
-        map.set(ASCIILiteral(&quot;desc&quot;), WebString::create(pluginModule.info.desc));
</del><ins>+        map.set(ASCIILiteral(&quot;path&quot;), API::String::create(pluginModule.path));
+        map.set(ASCIILiteral(&quot;name&quot;), API::String::create(pluginModule.info.name));
+        map.set(ASCIILiteral(&quot;file&quot;), API::String::create(pluginModule.info.file));
+        map.set(ASCIILiteral(&quot;desc&quot;), API::String::create(pluginModule.info.desc));
</ins><span class="cx"> 
</span><span class="cx">         Vector&lt;RefPtr&lt;API::Object&gt;&gt; mimeTypes;
</span><span class="cx">         mimeTypes.reserveInitialCapacity(pluginModule.info.mimes.size());
</span><span class="cx">         for (const auto&amp; mimeClassInfo : pluginModule.info.mimes)
</span><del>-            mimeTypes.uncheckedAppend(WebString::create(mimeClassInfo.type));
</del><ins>+            mimeTypes.uncheckedAppend(API::String::create(mimeClassInfo.type));
</ins><span class="cx">         map.set(ASCIILiteral(&quot;mimes&quot;), API::Array::create(std::move(mimeTypes)));
</span><span class="cx"> 
</span><span class="cx"> #if PLATFORM(MAC)
</span><del>-        map.set(ASCIILiteral(&quot;bundleId&quot;), WebString::create(pluginModule.bundleIdentifier));
-        map.set(ASCIILiteral(&quot;version&quot;), WebString::create(pluginModule.versionString));
</del><ins>+        map.set(ASCIILiteral(&quot;bundleId&quot;), API::String::create(pluginModule.bundleIdentifier));
+        map.set(ASCIILiteral(&quot;version&quot;), API::String::create(pluginModule.versionString));
</ins><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx">         plugins.uncheckedAppend(ImmutableDictionary::create(std::move(map)));
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessWebDatabaseManagerProxycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/WebDatabaseManagerProxy.cpp (160607 => 160608)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/WebDatabaseManagerProxy.cpp        2013-12-15 00:43:57 UTC (rev 160607)
+++ trunk/Source/WebKit2/UIProcess/WebDatabaseManagerProxy.cpp        2013-12-15 01:09:47 UTC (rev 160608)
</span><span class="lines">@@ -168,8 +168,8 @@
</span><span class="cx">         for (const auto&amp; databaseDetails : originAndDatabases.databases) {
</span><span class="cx">             HashMap&lt;String, RefPtr&lt;API::Object&gt;&gt; detailsMap;
</span><span class="cx"> 
</span><del>-            detailsMap.set(databaseDetailsNameKey(), WebString::create(databaseDetails.name()));
-            detailsMap.set(databaseDetailsDisplayNameKey(), WebString::create(databaseDetails.displayName()));
</del><ins>+            detailsMap.set(databaseDetailsNameKey(), API::String::create(databaseDetails.name()));
+            detailsMap.set(databaseDetailsDisplayNameKey(), API::String::create(databaseDetails.displayName()));
</ins><span class="cx">             detailsMap.set(databaseDetailsExpectedUsageKey(), API::UInt64::create(databaseDetails.expectedUsage()));
</span><span class="cx">             detailsMap.set(databaseDetailsCurrentUsageKey(), API::UInt64::create(databaseDetails.currentUsage()));
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessWebFormClientcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/WebFormClient.cpp (160607 => 160608)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/WebFormClient.cpp        2013-12-15 00:43:57 UTC (rev 160607)
+++ trunk/Source/WebKit2/UIProcess/WebFormClient.cpp        2013-12-15 01:09:47 UTC (rev 160608)
</span><span class="lines">@@ -26,10 +26,9 @@
</span><span class="cx"> #include &quot;config.h&quot;
</span><span class="cx"> #include &quot;WebFormClient.h&quot;
</span><span class="cx"> 
</span><ins>+#include &quot;APIString.h&quot;
</ins><span class="cx"> #include &quot;ImmutableDictionary.h&quot;
</span><span class="cx"> #include &quot;WKAPICast.h&quot;
</span><del>-#include &quot;WebString.h&quot;
-#include &lt;wtf/text/WTFString.h&gt;
</del><span class="cx"> 
</span><span class="cx"> namespace WebKit {
</span><span class="cx"> 
</span><span class="lines">@@ -40,7 +39,7 @@
</span><span class="cx"> 
</span><span class="cx">     ImmutableDictionary::MapType map;
</span><span class="cx">     for (size_t i = 0; i &lt; textFieldValues.size(); ++i)
</span><del>-        map.set(textFieldValues[i].first, WebString::create(textFieldValues[i].second));
</del><ins>+        map.set(textFieldValues[i].first, API::String::create(textFieldValues[i].second));
</ins><span class="cx">     RefPtr&lt;ImmutableDictionary&gt; textFieldsMap = ImmutableDictionary::create(std::move(map));
</span><span class="cx"> 
</span><span class="cx">     m_client.willSubmitForm(toAPI(page), toAPI(frame), toAPI(sourceFrame), toAPI(textFieldsMap.get()), toAPI(userData), toAPI(listener), m_client.base.clientInfo);
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessWebLoaderClientcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/WebLoaderClient.cpp (160607 => 160608)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/WebLoaderClient.cpp        2013-12-15 00:43:57 UTC (rev 160607)
+++ trunk/Source/WebKit2/UIProcess/WebLoaderClient.cpp        2013-12-15 01:09:47 UTC (rev 160608)
</span><span class="lines">@@ -274,14 +274,14 @@
</span><span class="cx">     if (m_client.didFailToInitializePlugin_deprecatedForUseWithV0)
</span><span class="cx">         m_client.didFailToInitializePlugin_deprecatedForUseWithV0(
</span><span class="cx">             toAPI(page),
</span><del>-            toAPI(pluginInformation-&gt;get&lt;WebString&gt;(pluginInformationMIMETypeKey())),
</del><ins>+            toAPI(pluginInformation-&gt;get&lt;API::String&gt;(pluginInformationMIMETypeKey())),
</ins><span class="cx">             m_client.base.clientInfo);
</span><span class="cx"> 
</span><span class="cx">     if (m_client.pluginDidFail_deprecatedForUseWithV1)
</span><span class="cx">         m_client.pluginDidFail_deprecatedForUseWithV1(
</span><span class="cx">             toAPI(page),
</span><span class="cx">             kWKErrorCodeCannotLoadPlugIn,
</span><del>-            toAPI(pluginInformation-&gt;get&lt;WebString&gt;(pluginInformationMIMETypeKey())),
</del><ins>+            toAPI(pluginInformation-&gt;get&lt;API::String&gt;(pluginInformationMIMETypeKey())),
</ins><span class="cx">             0,
</span><span class="cx">             0,
</span><span class="cx">             m_client.base.clientInfo);
</span><span class="lines">@@ -300,9 +300,9 @@
</span><span class="cx">         m_client.pluginDidFail_deprecatedForUseWithV1(
</span><span class="cx">             toAPI(page),
</span><span class="cx">             kWKErrorCodeInsecurePlugInVersion,
</span><del>-            toAPI(pluginInformation-&gt;get&lt;WebString&gt;(pluginInformationMIMETypeKey())),
-            toAPI(pluginInformation-&gt;get&lt;WebString&gt;(pluginInformationBundleIdentifierKey())),
-            toAPI(pluginInformation-&gt;get&lt;WebString&gt;(pluginInformationBundleVersionKey())),
</del><ins>+            toAPI(pluginInformation-&gt;get&lt;API::String&gt;(pluginInformationMIMETypeKey())),
+            toAPI(pluginInformation-&gt;get&lt;API::String&gt;(pluginInformationBundleIdentifierKey())),
+            toAPI(pluginInformation-&gt;get&lt;API::String&gt;(pluginInformationBundleVersionKey())),
</ins><span class="cx">             m_client.base.clientInfo);
</span><span class="cx"> 
</span><span class="cx">     if (m_client.pluginDidFail)
</span><span class="lines">@@ -324,7 +324,7 @@
</span><span class="cx">         loadPolicy = toPluginModuleLoadPolicy(m_client.pluginLoadPolicy(toAPI(page), toWKPluginLoadPolicy(currentPluginLoadPolicy), toAPI(pluginInformation), &amp;unavailabilityDescriptionOut, m_client.base.clientInfo));
</span><span class="cx"> 
</span><span class="cx">     if (unavailabilityDescriptionOut) {
</span><del>-        RefPtr&lt;WebString&gt; webUnavailabilityDescription = adoptRef(toImpl(unavailabilityDescriptionOut));
</del><ins>+        RefPtr&lt;API::String&gt; webUnavailabilityDescription = adoptRef(toImpl(unavailabilityDescriptionOut));
</ins><span class="cx">         unavailabilityDescription = webUnavailabilityDescription-&gt;string();
</span><span class="cx">     }
</span><span class="cx">     
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessWebPageGroupcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/WebPageGroup.cpp (160607 => 160608)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/WebPageGroup.cpp        2013-12-15 00:43:57 UTC (rev 160607)
+++ trunk/Source/WebKit2/UIProcess/WebPageGroup.cpp        2013-12-15 01:09:47 UTC (rev 160608)
</span><span class="lines">@@ -145,9 +145,9 @@
</span><span class="cx">     
</span><span class="cx">     patternVector.reserveInitialCapacity(size);
</span><span class="cx">     for (size_t i = 0; i &lt; size; ++i) {
</span><del>-        WebString* webString = array-&gt;at&lt;WebString&gt;(i);
-        ASSERT(webString);
-        patternVector.uncheckedAppend(webString-&gt;string());
</del><ins>+        API::String* string = array-&gt;at&lt;API::String&gt;(i);
+        ASSERT(string);
+        patternVector.uncheckedAppend(string-&gt;string());
</ins><span class="cx">     }
</span><span class="cx">     
</span><span class="cx">     return patternVector;
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessWebUIClientcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/WebUIClient.cpp (160607 => 160608)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/WebUIClient.cpp        2013-12-15 00:43:57 UTC (rev 160607)
+++ trunk/Source/WebKit2/UIProcess/WebUIClient.cpp        2013-12-15 01:09:47 UTC (rev 160608)
</span><span class="lines">@@ -141,7 +141,7 @@
</span><span class="cx">     if (!m_client.runJavaScriptPrompt)
</span><span class="cx">         return String();
</span><span class="cx"> 
</span><del>-    WebString* string = toImpl(m_client.runJavaScriptPrompt(toAPI(page), toAPI(message.impl()), toAPI(defaultValue.impl()), toAPI(frame), m_client.base.clientInfo));
</del><ins>+    API::String* string = toImpl(m_client.runJavaScriptPrompt(toAPI(page), toAPI(message.impl()), toAPI(defaultValue.impl()), toAPI(frame), m_client.base.clientInfo));
</ins><span class="cx">     if (!string)
</span><span class="cx">         return String();
</span><span class="cx"> 
</span><span class="lines">@@ -183,9 +183,9 @@
</span><span class="cx">         if (m_client.missingPluginButtonClicked_deprecatedForUseWithV0)
</span><span class="cx">             m_client.missingPluginButtonClicked_deprecatedForUseWithV0(
</span><span class="cx">                 toAPI(page),
</span><del>-                toAPI(pluginInformation-&gt;get&lt;WebString&gt;(pluginInformationMIMETypeKey())),
-                toAPI(pluginInformation-&gt;get&lt;WebString&gt;(pluginInformationPluginURLKey())),
-                toAPI(pluginInformation-&gt;get&lt;WebString&gt;(pluginInformationPluginspageAttributeURLKey())),
</del><ins>+                toAPI(pluginInformation-&gt;get&lt;API::String&gt;(pluginInformationMIMETypeKey())),
+                toAPI(pluginInformation-&gt;get&lt;API::String&gt;(pluginInformationPluginURLKey())),
+                toAPI(pluginInformation-&gt;get&lt;API::String&gt;(pluginInformationPluginspageAttributeURLKey())),
</ins><span class="cx">                 m_client.base.clientInfo);
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -193,9 +193,9 @@
</span><span class="cx">         m_client.unavailablePluginButtonClicked_deprecatedForUseWithV1(
</span><span class="cx">             toAPI(page),
</span><span class="cx">             pluginUnavailabilityReason,
</span><del>-            toAPI(pluginInformation-&gt;get&lt;WebString&gt;(pluginInformationMIMETypeKey())),
-            toAPI(pluginInformation-&gt;get&lt;WebString&gt;(pluginInformationPluginURLKey())),
-            toAPI(pluginInformation-&gt;get&lt;WebString&gt;(pluginInformationPluginspageAttributeURLKey())),
</del><ins>+            toAPI(pluginInformation-&gt;get&lt;API::String&gt;(pluginInformationMIMETypeKey())),
+            toAPI(pluginInformation-&gt;get&lt;API::String&gt;(pluginInformationPluginURLKey())),
+            toAPI(pluginInformation-&gt;get&lt;API::String&gt;(pluginInformationPluginspageAttributeURLKey())),
</ins><span class="cx">             m_client.base.clientInfo);
</span><span class="cx"> 
</span><span class="cx">     if (m_client.unavailablePluginButtonClicked)
</span></span></pre></div>
<a id="trunkSourceWebKit2WebKit2xcodeprojprojectpbxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj (160607 => 160608)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj        2013-12-15 00:43:57 UTC (rev 160607)
+++ trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj        2013-12-15 01:09:47 UTC (rev 160608)
</span><span class="lines">@@ -2827,7 +2827,7 @@
</span><span class="cx">                 BCF049E411FE20F600F86A58 /* WKBundleFramePrivate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKBundleFramePrivate.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 BCF049E511FE20F600F86A58 /* WKBundlePrivate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKBundlePrivate.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 BCF04C8C11FF9B7D00F86A58 /* APIObject.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = APIObject.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><del>-                BCF04C8E11FF9F6E00F86A58 /* WebString.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebString.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</del><ins>+                BCF04C8E11FF9F6E00F86A58 /* APIString.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = APIString.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</ins><span class="cx">                 BCF18637167D071E00A1A85A /* CacheModel.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CacheModel.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 BCF4DE22168E4BD500C94AFC /* NetworkProcessSupplement.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NetworkProcessSupplement.h; path = Network/NetworkProcessSupplement.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 BCF4DE24168FA44800C94AFC /* WebContextSupplement.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebContextSupplement.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="lines">@@ -3603,7 +3603,7 @@
</span><span class="cx">                                 51217463164C21370037A5C1 /* WebResourceBuffer.h */,
</span><span class="cx">                                 F634445512A885C8000612D8 /* WebSecurityOrigin.h */,
</span><span class="cx">                                 A72D5D7F1236CBA800A88B15 /* WebSerializedScriptValue.h */,
</span><del>-                                BCF04C8E11FF9F6E00F86A58 /* WebString.h */,
</del><ins>+                                BCF04C8E11FF9F6E00F86A58 /* APIString.h */,
</ins><span class="cx">                                 C0337DD7127A51B6008FF4F4 /* WebTouchEvent.cpp */,
</span><span class="cx">                                 BCDB86C01200FB97007254BE /* WebURL.h */,
</span><span class="cx">                                 BCE2315C122C30CA00D5C35A /* WebURLRequest.cpp */,
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessInjectedBundleAPIcWKBundlePagecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePage.cpp (160607 => 160608)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePage.cpp        2013-12-15 00:43:57 UTC (rev 160607)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePage.cpp        2013-12-15 01:09:47 UTC (rev 160608)
</span><span class="lines">@@ -28,6 +28,7 @@
</span><span class="cx"> #include &quot;WKBundlePagePrivate.h&quot;
</span><span class="cx"> 
</span><span class="cx"> #include &quot;APIArray.h&quot;
</span><ins>+#include &quot;APIString.h&quot;
</ins><span class="cx"> #include &quot;InjectedBundleBackForwardList.h&quot;
</span><span class="cx"> #include &quot;InjectedBundleNodeHandle.h&quot;
</span><span class="cx"> #include &quot;PageBanner.h&quot;
</span><span class="lines">@@ -44,7 +45,6 @@
</span><span class="cx"> #include &quot;WebPage.h&quot;
</span><span class="cx"> #include &quot;WebRenderLayer.h&quot;
</span><span class="cx"> #include &quot;WebRenderObject.h&quot;
</span><del>-#include &quot;WebString.h&quot;
</del><span class="cx"> #include &quot;WebURL.h&quot;
</span><span class="cx"> #include &quot;WebURLRequest.h&quot;
</span><span class="cx"> #include &lt;WebCore/AXObjectCache.h&gt;
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessInjectedBundleInjectedBundlecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp (160607 => 160608)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp        2013-12-15 00:43:57 UTC (rev 160607)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp        2013-12-15 01:09:47 UTC (rev 160608)
</span><span class="lines">@@ -414,7 +414,7 @@
</span><span class="cx">     originIdentifiers.reserveInitialCapacity(origins.size());
</span><span class="cx"> 
</span><span class="cx">     for (const auto&amp; origin : origins)
</span><del>-        originIdentifiers.uncheckedAppend(WebString::create(origin-&gt;databaseIdentifier()));
</del><ins>+        originIdentifiers.uncheckedAppend(API::String::create(origin-&gt;databaseIdentifier()));
</ins><span class="cx"> 
</span><span class="cx">     return API::Array::create(std::move(originIdentifiers));
</span><span class="cx"> }
</span><span class="lines">@@ -485,7 +485,7 @@
</span><span class="cx">         return patternsVector;
</span><span class="cx"> 
</span><span class="cx">     patternsVector.reserveInitialCapacity(size);
</span><del>-    for (const auto&amp; entry : patterns-&gt;elementsOfType&lt;WebString&gt;())
</del><ins>+    for (const auto&amp; entry : patterns-&gt;elementsOfType&lt;API::String&gt;())
</ins><span class="cx">         patternsVector.uncheckedAppend(entry-&gt;string());
</span><span class="cx">     return patternsVector;
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessInjectedBundleInjectedBundlePageEditorClientcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundlePageEditorClient.cpp (160607 => 160608)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundlePageEditorClient.cpp        2013-12-15 00:43:57 UTC (rev 160607)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundlePageEditorClient.cpp        2013-12-15 01:09:47 UTC (rev 160608)
</span><span class="lines">@@ -154,7 +154,7 @@
</span><span class="cx"> 
</span><span class="cx">         ASSERT(typesArray-&gt;size() == dataArray-&gt;size());
</span><span class="cx"> 
</span><del>-        for (const auto&amp; type : typesArray-&gt;elementsOfType&lt;WebString&gt;())
</del><ins>+        for (const auto&amp; type : typesArray-&gt;elementsOfType&lt;API::String&gt;())
</ins><span class="cx">             pasteboardTypes.append(type-&gt;string());
</span><span class="cx"> 
</span><span class="cx">         for (const auto&amp; item : dataArray-&gt;elementsOfType&lt;WebData&gt;()) {
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessInjectedBundleInjectedBundlePageFormClientcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundlePageFormClient.cpp (160607 => 160608)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundlePageFormClient.cpp        2013-12-15 00:43:57 UTC (rev 160607)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundlePageFormClient.cpp        2013-12-15 01:09:47 UTC (rev 160608)
</span><span class="lines">@@ -102,7 +102,7 @@
</span><span class="cx"> 
</span><span class="cx">     ImmutableDictionary::MapType map;
</span><span class="cx">     for (size_t i = 0; i &lt; values.size(); ++i)
</span><del>-        map.set(values[i].first, WebString::create(values[i].second));
</del><ins>+        map.set(values[i].first, API::String::create(values[i].second));
</ins><span class="cx">     auto textFieldsMap = ImmutableDictionary::create(std::move(map));
</span><span class="cx"> 
</span><span class="cx">     m_client.willSendSubmitEvent(toAPI(page), toAPI(nodeHandle.get()), toAPI(frame), toAPI(sourceFrame), toAPI(textFieldsMap.get()), m_client.base.clientInfo);
</span><span class="lines">@@ -117,7 +117,7 @@
</span><span class="cx"> 
</span><span class="cx">     ImmutableDictionary::MapType map;
</span><span class="cx">     for (size_t i = 0; i &lt; values.size(); ++i)
</span><del>-        map.set(values[i].first, WebString::create(values[i].second));
</del><ins>+        map.set(values[i].first, API::String::create(values[i].second));
</ins><span class="cx">     auto textFieldsMap = ImmutableDictionary::create(std::move(map));
</span><span class="cx"> 
</span><span class="cx">     WKTypeRef userDataToPass = 0;
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessInjectedBundleInjectedBundlePageUIClientcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp (160607 => 160608)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp        2013-12-15 00:43:57 UTC (rev 160607)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp        2013-12-15 01:09:47 UTC (rev 160608)
</span><span class="lines">@@ -90,7 +90,7 @@
</span><span class="cx"> {
</span><span class="cx">     if (!m_client.shouldGenerateFileForUpload)
</span><span class="cx">         return String();
</span><del>-    RefPtr&lt;WebString&gt; generatedFilePath = adoptRef(toImpl(m_client.shouldGenerateFileForUpload(toAPI(page), toAPI(originalFilePath.impl()), m_client.base.clientInfo)));
</del><ins>+    RefPtr&lt;API::String&gt; generatedFilePath = adoptRef(toImpl(m_client.shouldGenerateFileForUpload(toAPI(page), toAPI(originalFilePath.impl()), m_client.base.clientInfo)));
</ins><span class="cx">     return generatedFilePath ? generatedFilePath-&gt;string() : String();
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -98,7 +98,7 @@
</span><span class="cx"> {
</span><span class="cx">     if (!m_client.shouldGenerateFileForUpload)
</span><span class="cx">         return String();
</span><del>-    RefPtr&lt;WebString&gt; generatedFilePath = adoptRef(toImpl(m_client.generateFileForUpload(toAPI(page), toAPI(originalFilePath.impl()), m_client.base.clientInfo)));
</del><ins>+    RefPtr&lt;API::String&gt; generatedFilePath = adoptRef(toImpl(m_client.generateFileForUpload(toAPI(page), toAPI(originalFilePath.impl()), m_client.base.clientInfo)));
</ins><span class="cx">     return generatedFilePath ? generatedFilePath-&gt;string() : String();
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -147,7 +147,7 @@
</span><span class="cx">     if (!m_client.createPlugInStartLabelTitle)
</span><span class="cx">         return String();
</span><span class="cx"> 
</span><del>-    RefPtr&lt;WebString&gt; title = adoptRef(toImpl(m_client.createPlugInStartLabelTitle(toAPI(mimeType.impl()), m_client.base.clientInfo)));
</del><ins>+    RefPtr&lt;API::String&gt; title = adoptRef(toImpl(m_client.createPlugInStartLabelTitle(toAPI(mimeType.impl()), m_client.base.clientInfo)));
</ins><span class="cx">     return title ? title-&gt;string() : String();
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -156,7 +156,7 @@
</span><span class="cx">     if (!m_client.createPlugInStartLabelSubtitle)
</span><span class="cx">         return String();
</span><span class="cx"> 
</span><del>-    RefPtr&lt;WebString&gt; subtitle = adoptRef(toImpl(m_client.createPlugInStartLabelSubtitle(toAPI(mimeType.impl()), m_client.base.clientInfo)));
</del><ins>+    RefPtr&lt;API::String&gt; subtitle = adoptRef(toImpl(m_client.createPlugInStartLabelSubtitle(toAPI(mimeType.impl()), m_client.base.clientInfo)));
</ins><span class="cx">     return subtitle ? subtitle-&gt;string() : String();
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -165,7 +165,7 @@
</span><span class="cx">     if (!m_client.createPlugInExtraStyleSheet)
</span><span class="cx">         return String();
</span><span class="cx"> 
</span><del>-    RefPtr&lt;WebString&gt; styleSheet = adoptRef(toImpl(m_client.createPlugInExtraStyleSheet(m_client.base.clientInfo)));
</del><ins>+    RefPtr&lt;API::String&gt; styleSheet = adoptRef(toImpl(m_client.createPlugInExtraStyleSheet(m_client.base.clientInfo)));
</ins><span class="cx">     return styleSheet ? styleSheet-&gt;string() : String();
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -174,7 +174,7 @@
</span><span class="cx">     if (!m_client.createPlugInExtraScript)
</span><span class="cx">         return String();
</span><span class="cx"> 
</span><del>-    RefPtr&lt;WebString&gt; script = adoptRef(toImpl(m_client.createPlugInExtraScript(m_client.base.clientInfo)));
</del><ins>+    RefPtr&lt;API::String&gt; script = adoptRef(toImpl(m_client.createPlugInExtraScript(m_client.base.clientInfo)));
</ins><span class="cx">     return script ? script-&gt;string() : String();
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebPagemacWKAccessibilityWebPageObjectmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebPage/mac/WKAccessibilityWebPageObject.mm (160607 => 160608)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/mac/WKAccessibilityWebPageObject.mm        2013-12-15 00:43:57 UTC (rev 160607)
+++ trunk/Source/WebKit2/WebProcess/WebPage/mac/WKAccessibilityWebPageObject.mm        2013-12-15 01:09:47 UTC (rev 160608)
</span><span class="lines">@@ -120,7 +120,7 @@
</span><span class="cx">     size_t count = WKArrayGetSize(result.get());
</span><span class="cx">     for (size_t k = 0; k &lt; count; k++) {
</span><span class="cx">         WKTypeRef item = WKArrayGetItemAtIndex(result.get(), k);
</span><del>-        if (toImpl(item)-&gt;type() == WebString::APIType) {
</del><ins>+        if (toImpl(item)-&gt;type() == API::String::APIType) {
</ins><span class="cx">             RetainPtr&lt;CFStringRef&gt; name = adoptCF(WKStringCopyCFString(kCFAllocatorDefault, (WKStringRef)item));
</span><span class="cx">             [names addObject:(NSString *)name.get()];
</span><span class="cx">         }
</span><span class="lines">@@ -207,7 +207,7 @@
</span><span class="cx">     if (!result)
</span><span class="cx">         return nil;
</span><span class="cx">     
</span><del>-    if (toImpl(result.get())-&gt;type() == WebString::APIType)
</del><ins>+    if (toImpl(result.get())-&gt;type() == API::String::APIType)
</ins><span class="cx">         return CFBridgingRelease(WKStringCopyCFString(kCFAllocatorDefault, (WKStringRef)result.get()));
</span><span class="cx">     else if (toImpl(result.get())-&gt;type() == API::Boolean::APIType)
</span><span class="cx">         return [NSNumber numberWithBool:WKBooleanGetValue(static_cast&lt;WKBooleanRef&gt;(result.get()))];
</span></span></pre>
</div>
</div>

</body>
</html>