<!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>[179281] 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/179281">179281</a></dd>
<dt>Author</dt> <dd>commit-queue@webkit.org</dd>
<dt>Date</dt> <dd>2015-01-28 13:16:56 -0800 (Wed, 28 Jan 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>Convert WebPreferences and VisitedLinkProvider to be bridged API::Objects
https://bugs.webkit.org/show_bug.cgi?id=141002

Patch by Sam Weinig &lt;sam@webkit.org&gt; on 2015-01-28
Reviewed by Tim Horton.

* Shared/API/APIObject.h:
Add VisitedLinkProvider type.

* Shared/Cocoa/APIObject.mm:
(API::Object::newObject):
Allocate WebPreferences and VisitedLinkProvider as their Objective-C counterpart.

* UIProcess/API/Cocoa/WKPreferences.mm:
(-[WKPreferences init]):
Switch to constructInWrapper.

(-[WKPreferences dealloc]):
Call the WebPreferences destructor.

(-[WKPreferences _apiObject]):
Add implementation of the WKObject protocol.

* UIProcess/API/Cocoa/WKPreferencesInternal.h:
Convert to using ObjectStorage.

* UIProcess/API/Cocoa/_WKVisitedLinkProvider.mm:
(-[_WKVisitedLinkProvider init]):
Switch to constructInWrapper.

(-[_WKVisitedLinkProvider dealloc]):
Call the VisitedLinkProvider destructor.

(-[_WKVisitedLinkProvider _apiObject]):
Add implementation of the WKObject protocol.

* UIProcess/API/Cocoa/_WKVisitedLinkProviderInternal.h:
Convert to using ObjectStorage.

* UIProcess/VisitedLinkProvider.cpp:
(WebKit::VisitedLinkProvider::create):
* UIProcess/VisitedLinkProvider.h:
Switch create() to return a Ref.

* UIProcess/WebPreferences.h:
Make the constructor public for use by constructInWrapper.

* UIProcess/WebProcessPool.cpp:
(WebKit::WebProcessPool::createWebPage):
* UIProcess/WebProcessPool.h:
Store the VisitedLinkProvider in a Ref.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebKit2ChangeLog">trunk/Source/WebKit2/ChangeLog</a></li>
<li><a href="#trunkSourceWebKit2SharedAPIAPIObjecth">trunk/Source/WebKit2/Shared/API/APIObject.h</a></li>
<li><a href="#trunkSourceWebKit2SharedCocoaAPIObjectmm">trunk/Source/WebKit2/Shared/Cocoa/APIObject.mm</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPICocoaWKPreferencesmm">trunk/Source/WebKit2/UIProcess/API/Cocoa/WKPreferences.mm</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPICocoaWKPreferencesInternalh">trunk/Source/WebKit2/UIProcess/API/Cocoa/WKPreferencesInternal.h</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPICocoa_WKVisitedLinkProvidermm">trunk/Source/WebKit2/UIProcess/API/Cocoa/_WKVisitedLinkProvider.mm</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPICocoa_WKVisitedLinkProviderInternalh">trunk/Source/WebKit2/UIProcess/API/Cocoa/_WKVisitedLinkProviderInternal.h</a></li>
<li><a href="#trunkSourceWebKit2UIProcessVisitedLinkProvidercpp">trunk/Source/WebKit2/UIProcess/VisitedLinkProvider.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessVisitedLinkProviderh">trunk/Source/WebKit2/UIProcess/VisitedLinkProvider.h</a></li>
<li><a href="#trunkSourceWebKit2UIProcessWebPreferencesh">trunk/Source/WebKit2/UIProcess/WebPreferences.h</a></li>
<li><a href="#trunkSourceWebKit2UIProcessWebProcessPoolcpp">trunk/Source/WebKit2/UIProcess/WebProcessPool.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessWebProcessPoolh">trunk/Source/WebKit2/UIProcess/WebProcessPool.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebKit2ChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/ChangeLog (179280 => 179281)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/ChangeLog        2015-01-28 21:01:06 UTC (rev 179280)
+++ trunk/Source/WebKit2/ChangeLog        2015-01-28 21:16:56 UTC (rev 179281)
</span><span class="lines">@@ -1,3 +1,56 @@
</span><ins>+2015-01-28  Sam Weinig  &lt;sam@webkit.org&gt;
+
+        Convert WebPreferences and VisitedLinkProvider to be bridged API::Objects
+        https://bugs.webkit.org/show_bug.cgi?id=141002
+
+        Reviewed by Tim Horton.
+
+        * Shared/API/APIObject.h:
+        Add VisitedLinkProvider type.
+        
+        * Shared/Cocoa/APIObject.mm:
+        (API::Object::newObject):
+        Allocate WebPreferences and VisitedLinkProvider as their Objective-C counterpart.
+        
+        * UIProcess/API/Cocoa/WKPreferences.mm:
+        (-[WKPreferences init]):
+        Switch to constructInWrapper.
+
+        (-[WKPreferences dealloc]):
+        Call the WebPreferences destructor.
+        
+        (-[WKPreferences _apiObject]):
+        Add implementation of the WKObject protocol.
+
+        * UIProcess/API/Cocoa/WKPreferencesInternal.h:
+        Convert to using ObjectStorage.
+
+        * UIProcess/API/Cocoa/_WKVisitedLinkProvider.mm:
+        (-[_WKVisitedLinkProvider init]):
+        Switch to constructInWrapper.
+
+        (-[_WKVisitedLinkProvider dealloc]):
+        Call the VisitedLinkProvider destructor.
+
+        (-[_WKVisitedLinkProvider _apiObject]):
+        Add implementation of the WKObject protocol.
+
+        * UIProcess/API/Cocoa/_WKVisitedLinkProviderInternal.h:
+        Convert to using ObjectStorage.
+
+        * UIProcess/VisitedLinkProvider.cpp:
+        (WebKit::VisitedLinkProvider::create):
+        * UIProcess/VisitedLinkProvider.h:
+        Switch create() to return a Ref.
+
+        * UIProcess/WebPreferences.h:
+        Make the constructor public for use by constructInWrapper.
+
+        * UIProcess/WebProcessPool.cpp:
+        (WebKit::WebProcessPool::createWebPage):
+        * UIProcess/WebProcessPool.h:
+        Store the VisitedLinkProvider in a Ref.
+
</ins><span class="cx"> 2015-01-28  Dana Burkart  &lt;dburkart@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Move ASan flag settings from DebugRelease.xcconfig to Base.xcconfig
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedAPIAPIObjecth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/API/APIObject.h (179280 => 179281)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/API/APIObject.h        2015-01-28 21:01:06 UTC (rev 179280)
+++ trunk/Source/WebKit2/Shared/API/APIObject.h        2015-01-28 21:16:56 UTC (rev 179281)
</span><span class="lines">@@ -141,6 +141,7 @@
</span><span class="cx">         UserMediaPermissionRequest,
</span><span class="cx">         Vibration,
</span><span class="cx">         ViewportAttributes,
</span><ins>+        VisitedLinkProvider,
</ins><span class="cx">         WebsiteDataStore,
</span><span class="cx"> 
</span><span class="cx">         // Bundle types
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedCocoaAPIObjectmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/Cocoa/APIObject.mm (179280 => 179281)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/Cocoa/APIObject.mm        2015-01-28 21:01:06 UTC (rev 179280)
+++ trunk/Source/WebKit2/Shared/Cocoa/APIObject.mm        2015-01-28 21:16:56 UTC (rev 179281)
</span><span class="lines">@@ -43,6 +43,7 @@
</span><span class="cx"> #import &quot;WKNSURLRequest.h&quot;
</span><span class="cx"> #import &quot;WKNavigationDataInternal.h&quot;
</span><span class="cx"> #import &quot;WKNavigationInternal.h&quot;
</span><ins>+#import &quot;WKPreferencesInternal.h&quot;
</ins><span class="cx"> #import &quot;WKProcessPoolInternal.h&quot;
</span><span class="cx"> #import &quot;WKUserContentControllerInternal.h&quot;
</span><span class="cx"> #import &quot;WKUserScriptInternal.h&quot;
</span><span class="lines">@@ -56,6 +57,7 @@
</span><span class="cx"> #import &quot;_WKDownloadInternal.h&quot;
</span><span class="cx"> #import &quot;_WKFrameHandleInternal.h&quot;
</span><span class="cx"> #import &quot;_WKProcessPoolConfigurationInternal.h&quot;
</span><ins>+#import &quot;_WKVisitedLinkProviderInternal.h&quot;
</ins><span class="cx"> #import &quot;_WKWebsiteDataStoreInternal.h&quot;
</span><span class="cx"> #import &lt;objc/objc-auto.h&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -108,6 +110,10 @@
</span><span class="cx">         wrapper = NSAllocateObject([WKConnection self], size, nullptr);
</span><span class="cx">         break;
</span><span class="cx"> 
</span><ins>+    case Type::Preferences:
+        wrapper = [WKPreferences alloc];
+        break;
+
</ins><span class="cx">     case Type::ProcessPool:
</span><span class="cx">         wrapper = [WKProcessPool alloc];
</span><span class="cx">         break;
</span><span class="lines">@@ -168,6 +174,10 @@
</span><span class="cx">         wrapper = [WKUserScript alloc];
</span><span class="cx">         break;
</span><span class="cx"> 
</span><ins>+    case Type::VisitedLinkProvider:
+        wrapper = [_WKVisitedLinkProvider alloc];
+        break;
+
</ins><span class="cx">     case Type::WebsiteDataStore:
</span><span class="cx">         wrapper = [_WKWebsiteDataStore alloc];
</span><span class="cx">         break;
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPICocoaWKPreferencesmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/Cocoa/WKPreferences.mm (179280 => 179281)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/Cocoa/WKPreferences.mm        2015-01-28 21:01:06 UTC (rev 179280)
+++ trunk/Source/WebKit2/UIProcess/API/Cocoa/WKPreferences.mm        2015-01-28 21:16:56 UTC (rev 179281)
</span><span class="lines">@@ -39,10 +39,17 @@
</span><span class="cx">     if (!(self = [super init]))
</span><span class="cx">         return nil;
</span><span class="cx"> 
</span><del>-    _preferences = WebKit::WebPreferences::create(String(), &quot;WebKit&quot;, &quot;WebKit&quot;);
</del><ins>+    API::Object::constructInWrapper&lt;WebKit::WebPreferences&gt;(self, String(), &quot;WebKit&quot;, &quot;WebKit&quot;);
</ins><span class="cx">     return self;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+- (void)dealloc
+{
+    _preferences-&gt;~WebPreferences();
+
+    [super dealloc];
+}
+
</ins><span class="cx"> - (CGFloat)minimumFontSize
</span><span class="cx"> {
</span><span class="cx">     return _preferences-&gt;minimumFontSize();
</span><span class="lines">@@ -99,6 +106,13 @@
</span><span class="cx"> 
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><ins>+#pragma mark WKObject protocol implementation
+
+- (API::Object&amp;)_apiObject
+{
+    return *_preferences;
+}
+
</ins><span class="cx"> @end
</span><span class="cx"> 
</span><span class="cx"> @implementation WKPreferences (WKPrivate)
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPICocoaWKPreferencesInternalh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/Cocoa/WKPreferencesInternal.h (179280 => 179281)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/Cocoa/WKPreferencesInternal.h        2015-01-28 21:01:06 UTC (rev 179280)
+++ trunk/Source/WebKit2/UIProcess/API/Cocoa/WKPreferencesInternal.h        2015-01-28 21:16:56 UTC (rev 179281)
</span><span class="lines">@@ -27,15 +27,22 @@
</span><span class="cx"> 
</span><span class="cx"> #if WK_API_ENABLED
</span><span class="cx"> 
</span><del>-#import &lt;wtf/RefPtr.h&gt;
</del><ins>+#import &quot;WKObject.h&quot;
+#import &quot;WebPreferences.h&quot;
</ins><span class="cx"> 
</span><span class="cx"> namespace WebKit {
</span><del>-class WebPreferences;
</del><ins>+
+inline WKPreferences *wrapper(WebPreferences&amp; preferences)
+{
+    ASSERT([preferences.wrapper() isKindOfClass:[WKPreferences class]]);
+    return (WKPreferences *)preferences.wrapper();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-@interface WKPreferences () {
</del><ins>+}
+
+@interface WKPreferences () &lt;WKObject&gt; {
</ins><span class="cx"> @package
</span><del>-    RefPtr&lt;WebKit::WebPreferences&gt; _preferences;
</del><ins>+    API::ObjectStorage&lt;WebKit::WebPreferences&gt; _preferences;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> @end
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPICocoa_WKVisitedLinkProvidermm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/Cocoa/_WKVisitedLinkProvider.mm (179280 => 179281)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/Cocoa/_WKVisitedLinkProvider.mm        2015-01-28 21:01:06 UTC (rev 179280)
+++ trunk/Source/WebKit2/UIProcess/API/Cocoa/_WKVisitedLinkProvider.mm        2015-01-28 21:16:56 UTC (rev 179281)
</span><span class="lines">@@ -38,11 +38,18 @@
</span><span class="cx">     if (!(self = [super init]))
</span><span class="cx">         return nil;
</span><span class="cx"> 
</span><del>-    _visitedLinkProvider = WebKit::VisitedLinkProvider::create();
</del><ins>+    API::Object::constructInWrapper&lt;WebKit::VisitedLinkProvider&gt;(self);
</ins><span class="cx"> 
</span><span class="cx">     return self;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+- (void)dealloc
+{
+    _visitedLinkProvider-&gt;~VisitedLinkProvider();
+
+    [super dealloc];
+}
+
</ins><span class="cx"> - (void)addVisitedLinkWithURL:(NSURL *)URL
</span><span class="cx"> {
</span><span class="cx">     auto linkHash = WebCore::visitedLinkHash(URL.absoluteString);
</span><span class="lines">@@ -55,6 +62,13 @@
</span><span class="cx">     _visitedLinkProvider-&gt;removeAll();
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+#pragma mark WKObject protocol implementation
+
+- (API::Object&amp;)_apiObject
+{
+    return *_visitedLinkProvider;
+}
+
</ins><span class="cx"> @end
</span><span class="cx"> 
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPICocoa_WKVisitedLinkProviderInternalh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/Cocoa/_WKVisitedLinkProviderInternal.h (179280 => 179281)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/Cocoa/_WKVisitedLinkProviderInternal.h        2015-01-28 21:01:06 UTC (rev 179280)
+++ trunk/Source/WebKit2/UIProcess/API/Cocoa/_WKVisitedLinkProviderInternal.h        2015-01-28 21:16:56 UTC (rev 179281)
</span><span class="lines">@@ -27,15 +27,22 @@
</span><span class="cx"> 
</span><span class="cx"> #if WK_API_ENABLED
</span><span class="cx"> 
</span><del>-#import &lt;wtf/RefPtr.h&gt;
</del><ins>+#import &quot;VisitedLinkProvider.h&quot;
+#import &quot;WKObject.h&quot;
</ins><span class="cx"> 
</span><span class="cx"> namespace WebKit {
</span><del>-class VisitedLinkProvider;
</del><ins>+
+inline _WKVisitedLinkProvider *wrapper(VisitedLinkProvider&amp; visitedLinkProvider)
+{
+    ASSERT([visitedLinkProvider.wrapper() isKindOfClass:[_WKVisitedLinkProvider class]]);
+    return (_WKVisitedLinkProvider *)visitedLinkProvider.wrapper();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-@interface _WKVisitedLinkProvider () {
</del><ins>+}
+
+@interface _WKVisitedLinkProvider () &lt;WKObject&gt; {
</ins><span class="cx"> @package
</span><del>-    RefPtr&lt;WebKit::VisitedLinkProvider&gt; _visitedLinkProvider;
</del><ins>+    API::ObjectStorage&lt;WebKit::VisitedLinkProvider&gt; _visitedLinkProvider;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> @end
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessVisitedLinkProvidercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/VisitedLinkProvider.cpp (179280 => 179281)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/VisitedLinkProvider.cpp        2015-01-28 21:01:06 UTC (rev 179280)
+++ trunk/Source/WebKit2/UIProcess/VisitedLinkProvider.cpp        2015-01-28 21:16:56 UTC (rev 179281)
</span><span class="lines">@@ -47,9 +47,9 @@
</span><span class="cx">     return ++identifier;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;VisitedLinkProvider&gt; VisitedLinkProvider::create()
</del><ins>+Ref&lt;VisitedLinkProvider&gt; VisitedLinkProvider::create()
</ins><span class="cx"> {
</span><del>-    return adoptRef(new VisitedLinkProvider);
</del><ins>+    return adoptRef(*new VisitedLinkProvider);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> VisitedLinkProvider::~VisitedLinkProvider()
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessVisitedLinkProviderh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/VisitedLinkProvider.h (179280 => 179281)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/VisitedLinkProvider.h        2015-01-28 21:01:06 UTC (rev 179280)
+++ trunk/Source/WebKit2/UIProcess/VisitedLinkProvider.h        2015-01-28 21:16:56 UTC (rev 179281)
</span><span class="lines">@@ -26,6 +26,7 @@
</span><span class="cx"> #ifndef VisitedLinkProvider_h
</span><span class="cx"> #define VisitedLinkProvider_h
</span><span class="cx"> 
</span><ins>+#include &quot;APIObject.h&quot;
</ins><span class="cx"> #include &quot;MessageReceiver.h&quot;
</span><span class="cx"> #include &quot;VisitedLinkTable.h&quot;
</span><span class="cx"> #include &quot;WebProcessLifetimeObserver.h&quot;
</span><span class="lines">@@ -40,11 +41,13 @@
</span><span class="cx"> class WebPageProxy;
</span><span class="cx"> class WebProcessProxy;
</span><span class="cx">     
</span><del>-class VisitedLinkProvider : public RefCounted&lt;VisitedLinkProvider&gt;, private IPC::MessageReceiver, public WebProcessLifetimeObserver {
</del><ins>+class VisitedLinkProvider final : public API::ObjectImpl&lt;API::Object::Type::VisitedLinkProvider&gt;, private IPC::MessageReceiver, public WebProcessLifetimeObserver {
</ins><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;VisitedLinkProvider&gt; create();
-    ~VisitedLinkProvider();
</del><ins>+    static Ref&lt;VisitedLinkProvider&gt; create();
</ins><span class="cx"> 
</span><ins>+    explicit VisitedLinkProvider();
+    virtual ~VisitedLinkProvider();
+
</ins><span class="cx">     uint64_t identifier() const { return m_identifier; }
</span><span class="cx"> 
</span><span class="cx">     void addProcess(WebProcessProxy&amp;);
</span><span class="lines">@@ -54,8 +57,6 @@
</span><span class="cx">     void removeAll();
</span><span class="cx"> 
</span><span class="cx"> private:
</span><del>-    VisitedLinkProvider();
-
</del><span class="cx">     // IPC::MessageReceiver
</span><span class="cx">     virtual void didReceiveMessage(IPC::Connection&amp;, IPC::MessageDecoder&amp;) override;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessWebPreferencesh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/WebPreferences.h (179280 => 179281)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/WebPreferences.h        2015-01-28 21:01:06 UTC (rev 179280)
+++ trunk/Source/WebKit2/UIProcess/WebPreferences.h        2015-01-28 21:16:56 UTC (rev 179281)
</span><span class="lines">@@ -47,6 +47,9 @@
</span><span class="cx">     static PassRefPtr&lt;WebPreferences&gt; create(const String&amp; identifier, const String&amp; keyPrefix, const String&amp; globalDebugKeyPrefix);
</span><span class="cx">     static PassRefPtr&lt;WebPreferences&gt; createWithLegacyDefaults(const String&amp; identifier, const String&amp; keyPrefix, const String&amp; globalDebugKeyPrefix);
</span><span class="cx"> 
</span><ins>+    explicit WebPreferences(const String&amp; identifier, const String&amp; keyPrefix, const String&amp; globalDebugKeyPrefix);
+    WebPreferences(const WebPreferences&amp;);
+
</ins><span class="cx">     virtual ~WebPreferences();
</span><span class="cx"> 
</span><span class="cx">     PassRefPtr&lt;WebPreferences&gt; copy() const;
</span><span class="lines">@@ -71,9 +74,6 @@
</span><span class="cx">     static bool anyPagesAreUsingPrivateBrowsing();
</span><span class="cx"> 
</span><span class="cx"> private:
</span><del>-    explicit WebPreferences(const String&amp; identifier, const String&amp; keyPrefix, const String&amp; globalDebugKeyPrefix);
-    WebPreferences(const WebPreferences&amp;);
-
</del><span class="cx">     void platformInitializeStore();
</span><span class="cx"> 
</span><span class="cx">     void update();
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessWebProcessPoolcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/WebProcessPool.cpp (179280 => 179281)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/WebProcessPool.cpp        2015-01-28 21:01:06 UTC (rev 179280)
+++ trunk/Source/WebKit2/UIProcess/WebProcessPool.cpp        2015-01-28 21:16:56 UTC (rev 179281)
</span><span class="lines">@@ -842,7 +842,7 @@
</span><span class="cx">     if (!configuration.preferences)
</span><span class="cx">         configuration.preferences = &amp;configuration.pageGroup-&gt;preferences();
</span><span class="cx">     if (!configuration.visitedLinkProvider)
</span><del>-        configuration.visitedLinkProvider = m_visitedLinkProvider.get();
</del><ins>+        configuration.visitedLinkProvider = m_visitedLinkProvider.ptr();
</ins><span class="cx">     if (!configuration.websiteDataStore) {
</span><span class="cx">         ASSERT(!configuration.sessionID.isValid());
</span><span class="cx">         configuration.websiteDataStore = m_websiteDataStore.get();
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessWebProcessPoolh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/WebProcessPool.h (179280 => 179281)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/WebProcessPool.h        2015-01-28 21:01:06 UTC (rev 179280)
+++ trunk/Source/WebKit2/UIProcess/WebProcessPool.h        2015-01-28 21:16:56 UTC (rev 179281)
</span><span class="lines">@@ -202,7 +202,7 @@
</span><span class="cx">     void registerURLSchemeAsCachePartitioned(const String&amp;);
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-    VisitedLinkProvider&amp; visitedLinkProvider() { return *m_visitedLinkProvider; }
</del><ins>+    VisitedLinkProvider&amp; visitedLinkProvider() { return m_visitedLinkProvider.get(); }
</ins><span class="cx"> 
</span><span class="cx">     void setCacheModel(CacheModel);
</span><span class="cx">     CacheModel cacheModel() const { return m_cacheModel; }
</span><span class="lines">@@ -442,7 +442,7 @@
</span><span class="cx"> #if ENABLE(NETSCAPE_PLUGIN_API)
</span><span class="cx">     PluginInfoStore m_pluginInfoStore;
</span><span class="cx"> #endif
</span><del>-    RefPtr&lt;VisitedLinkProvider&gt; m_visitedLinkProvider;
</del><ins>+    Ref&lt;VisitedLinkProvider&gt; m_visitedLinkProvider;
</ins><span class="cx">     bool m_visitedLinksPopulated;
</span><span class="cx"> 
</span><span class="cx">     PlugInAutoStartProvider m_plugInAutoStartProvider;
</span></span></pre>
</div>
</div>

</body>
</html>