<!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>[207168] 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/207168">207168</a></dd>
<dt>Author</dt> <dd>andersca@apple.com</dd>
<dt>Date</dt> <dd>2016-10-11 15:01:45 -0700 (Tue, 11 Oct 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>Clean up WebPageGroup somewhat
https://bugs.webkit.org/show_bug.cgi?id=163299

Reviewed by Tim Horton.

* Shared/API/c/WKDeprecatedFunctions.cpp:
(WKPageGroupCopyIdentifier):
Move this here from WKPageGroup.

(WKPageGroupAddUserContentFilter):
(WKPageGroupRemoveUserContentFilter):
(WKPageGroupRemoveAllUserContentFilters):
Just call directly into the user content controller.

* UIProcess/API/C/WKPageGroup.cpp:
(WKPageGroupAddUserStyleSheet):
(WKPageGroupRemoveAllUserStyleSheets):
(WKPageGroupAddUserScript):
(WKPageGroupRemoveAllUserScripts):
Just call directly into the user content controller.

* UIProcess/API/C/WKPageGroup.h:
* UIProcess/WebPageGroup.cpp:
(WebKit::WebPageGroup::addUserStyleSheet): Deleted.
(WebKit::WebPageGroup::addUserScript): Deleted.
(WebKit::WebPageGroup::removeAllUserStyleSheets): Deleted.
(WebKit::WebPageGroup::removeAllUserScripts): Deleted.
(WebKit::WebPageGroup::removeAllUserContent): Deleted.
(WebKit::WebPageGroup::addUserContentExtension): Deleted.
(WebKit::WebPageGroup::removeUserContentExtension): Deleted.
(WebKit::WebPageGroup::removeAllUserContentExtensions): Deleted.
Get rid of these, all their callers just call into the user content controller now.

* UIProcess/WebPageGroup.h:
(WebKit::WebPageGroup::identifier): Deleted.
(WebKit::WebPageGroup::sendToAllProcessesInGroup): Deleted.
Remove unused code.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebKit2ChangeLog">trunk/Source/WebKit2/ChangeLog</a></li>
<li><a href="#trunkSourceWebKit2SharedAPIcWKDeprecatedFunctionscpp">trunk/Source/WebKit2/Shared/API/c/WKDeprecatedFunctions.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPICWKPageGroupcpp">trunk/Source/WebKit2/UIProcess/API/C/WKPageGroup.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPICWKPageGrouph">trunk/Source/WebKit2/UIProcess/API/C/WKPageGroup.h</a></li>
<li><a href="#trunkSourceWebKit2UIProcessWebPageGroupcpp">trunk/Source/WebKit2/UIProcess/WebPageGroup.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessWebPageGrouph">trunk/Source/WebKit2/UIProcess/WebPageGroup.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebKit2ChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/ChangeLog (207167 => 207168)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/ChangeLog        2016-10-11 21:58:20 UTC (rev 207167)
+++ trunk/Source/WebKit2/ChangeLog        2016-10-11 22:01:45 UTC (rev 207168)
</span><span class="lines">@@ -1,3 +1,43 @@
</span><ins>+2016-10-11  Anders Carlsson  &lt;andersca@apple.com&gt;
+
+        Clean up WebPageGroup somewhat
+        https://bugs.webkit.org/show_bug.cgi?id=163299
+
+        Reviewed by Tim Horton.
+
+        * Shared/API/c/WKDeprecatedFunctions.cpp:
+        (WKPageGroupCopyIdentifier):
+        Move this here from WKPageGroup.
+
+        (WKPageGroupAddUserContentFilter):
+        (WKPageGroupRemoveUserContentFilter):
+        (WKPageGroupRemoveAllUserContentFilters):
+        Just call directly into the user content controller.
+
+        * UIProcess/API/C/WKPageGroup.cpp:
+        (WKPageGroupAddUserStyleSheet):
+        (WKPageGroupRemoveAllUserStyleSheets):
+        (WKPageGroupAddUserScript):
+        (WKPageGroupRemoveAllUserScripts):
+        Just call directly into the user content controller.
+
+        * UIProcess/API/C/WKPageGroup.h:
+        * UIProcess/WebPageGroup.cpp:
+        (WebKit::WebPageGroup::addUserStyleSheet): Deleted.
+        (WebKit::WebPageGroup::addUserScript): Deleted.
+        (WebKit::WebPageGroup::removeAllUserStyleSheets): Deleted.
+        (WebKit::WebPageGroup::removeAllUserScripts): Deleted.
+        (WebKit::WebPageGroup::removeAllUserContent): Deleted.
+        (WebKit::WebPageGroup::addUserContentExtension): Deleted.
+        (WebKit::WebPageGroup::removeUserContentExtension): Deleted.
+        (WebKit::WebPageGroup::removeAllUserContentExtensions): Deleted.
+        Get rid of these, all their callers just call into the user content controller now.
+
+        * UIProcess/WebPageGroup.h:
+        (WebKit::WebPageGroup::identifier): Deleted.
+        (WebKit::WebPageGroup::sendToAllProcessesInGroup): Deleted.
+        Remove unused code.
+
</ins><span class="cx"> 2016-10-11  Daniel Bates  &lt;dabates@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [iOS] REGRESSION (r197953): User gesture required to load video in iOS 9-built apps
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedAPIcWKDeprecatedFunctionscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/API/c/WKDeprecatedFunctions.cpp (207167 => 207168)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/API/c/WKDeprecatedFunctions.cpp        2016-10-11 21:58:20 UTC (rev 207167)
+++ trunk/Source/WebKit2/Shared/API/c/WKDeprecatedFunctions.cpp        2016-10-11 22:01:45 UTC (rev 207168)
</span><span class="lines">@@ -33,6 +33,7 @@
</span><span class="cx"> #include &quot;WKMutableDictionary.h&quot;
</span><span class="cx"> #include &quot;WKPreferencesRefPrivate.h&quot;
</span><span class="cx"> #include &quot;WebPageGroup.h&quot;
</span><ins>+#include &quot;WebUserContentControllerProxy.h&quot;
</ins><span class="cx"> 
</span><span class="cx"> #if PLATFORM(MAC)
</span><span class="cx"> #include &quot;WKContextPrivateMac.h&quot;
</span><span class="lines">@@ -41,6 +42,7 @@
</span><span class="cx"> // Deprecated functions that should be removed from the framework once nobody uses them.
</span><span class="cx"> 
</span><span class="cx"> extern &quot;C&quot; {
</span><ins>+WK_EXPORT WKStringRef WKPageGroupCopyIdentifier(WKPageGroupRef pageGroup);
</ins><span class="cx"> WK_EXPORT void WKPageGroupAddUserContentFilter(WKPageGroupRef pageGroup, WKUserContentFilterRef userContentFilter);
</span><span class="cx"> WK_EXPORT void WKPageGroupRemoveUserContentFilter(WKPageGroupRef pageGroup, WKStringRef userContentFilterName);
</span><span class="cx"> WK_EXPORT void WKPageGroupRemoveAllUserContentFilters(WKPageGroupRef pageGroup);
</span><span class="lines">@@ -56,10 +58,15 @@
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+WKStringRef WKPageGroupCopyIdentifier(WKPageGroupRef)
+{
+    return nullptr;
+}
+
</ins><span class="cx"> void WKPageGroupAddUserContentFilter(WKPageGroupRef pageGroupRef, WKUserContentFilterRef userContentFilterRef)
</span><span class="cx"> {
</span><span class="cx"> #if ENABLE(CONTENT_EXTENSIONS)
</span><del>-    toImpl(pageGroupRef)-&gt;addUserContentExtension(*toImpl(userContentFilterRef));
</del><ins>+    toImpl(pageGroupRef)-&gt;userContentController().addUserContentExtension(*toImpl(userContentFilterRef));
</ins><span class="cx"> #else
</span><span class="cx">     UNUSED_PARAM(pageGroupRef);
</span><span class="cx">     UNUSED_PARAM(userContentFilterRef);
</span><span class="lines">@@ -69,7 +76,7 @@
</span><span class="cx"> void WKPageGroupRemoveUserContentFilter(WKPageGroupRef pageGroupRef, WKStringRef userContentFilterNameRef)
</span><span class="cx"> {
</span><span class="cx"> #if ENABLE(CONTENT_EXTENSIONS)
</span><del>-    toImpl(pageGroupRef)-&gt;removeUserContentExtension(toWTFString(userContentFilterNameRef));
</del><ins>+    toImpl(pageGroupRef)-&gt;userContentController().removeUserContentExtension(toWTFString(userContentFilterNameRef));
</ins><span class="cx"> #else
</span><span class="cx">     UNUSED_PARAM(pageGroupRef);
</span><span class="cx">     UNUSED_PARAM(userContentFilterNameRef);
</span><span class="lines">@@ -76,11 +83,10 @@
</span><span class="cx"> #endif
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-
</del><span class="cx"> void WKPageGroupRemoveAllUserContentFilters(WKPageGroupRef pageGroupRef)
</span><span class="cx"> {
</span><span class="cx"> #if ENABLE(CONTENT_EXTENSIONS)
</span><del>-    toImpl(pageGroupRef)-&gt;removeAllUserContentExtensions();
</del><ins>+    toImpl(pageGroupRef)-&gt;userContentController().removeAllUserContentExtensions();
</ins><span class="cx"> #else
</span><span class="cx">     UNUSED_PARAM(pageGroupRef);
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPICWKPageGroupcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/C/WKPageGroup.cpp (207167 => 207168)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/C/WKPageGroup.cpp        2016-10-11 21:58:20 UTC (rev 207167)
+++ trunk/Source/WebKit2/UIProcess/API/C/WKPageGroup.cpp        2016-10-11 22:01:45 UTC (rev 207168)
</span><span class="lines">@@ -27,6 +27,9 @@
</span><span class="cx"> #include &quot;WKPageGroup.h&quot;
</span><span class="cx"> 
</span><span class="cx"> #include &quot;APIUserContentExtension.h&quot;
</span><ins>+#include &quot;APIUserContentWorld.h&quot;
+#include &quot;APIUserScript.h&quot;
+#include &quot;APIUserStyleSheet.h&quot;
</ins><span class="cx"> #include &quot;WKAPICast.h&quot;
</span><span class="cx"> #include &quot;WebPageGroup.h&quot;
</span><span class="cx"> #include &quot;WebPreferences.h&quot;
</span><span class="lines">@@ -45,11 +48,6 @@
</span><span class="cx">     return toAPI(pageGroup.leakRef());
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-WKStringRef WKPageGroupCopyIdentifier(WKPageGroupRef pageGroupRef)
-{
-    return toCopiedAPI(toImpl(pageGroupRef)-&gt;identifier());
-}
-
</del><span class="cx"> void WKPageGroupSetPreferences(WKPageGroupRef pageGroupRef, WKPreferencesRef preferencesRef)
</span><span class="cx"> {
</span><span class="cx">     toImpl(pageGroupRef)-&gt;setPreferences(toImpl(preferencesRef));
</span><span class="lines">@@ -65,22 +63,43 @@
</span><span class="cx">     return toAPI(&amp;toImpl(pageGroupRef)-&gt;userContentController());
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void WKPageGroupAddUserStyleSheet(WKPageGroupRef pageGroupRef, WKStringRef sourceRef, WKURLRef baseURL, WKArrayRef whitelistedURLPatterns, WKArrayRef blacklistedURLPatterns, WKUserContentInjectedFrames injectedFrames)
</del><ins>+void WKPageGroupAddUserStyleSheet(WKPageGroupRef pageGroupRef, WKStringRef sourceRef, WKURLRef baseURLRef, WKArrayRef whitelistedURLPatterns, WKArrayRef blacklistedURLPatterns, WKUserContentInjectedFrames injectedFrames)
</ins><span class="cx"> {
</span><del>-    toImpl(pageGroupRef)-&gt;addUserStyleSheet(toWTFString(sourceRef), toWTFString(baseURL), toImpl(whitelistedURLPatterns), toImpl(blacklistedURLPatterns), toUserContentInjectedFrames(injectedFrames), WebCore::UserStyleUserLevel);
</del><ins>+    auto source = toWTFString(sourceRef);
+
+    if (source.isEmpty())
+        return;
+
+    auto baseURLString = toWTFString(baseURLRef);
+    auto whitelist = toImpl(whitelistedURLPatterns);
+    auto blacklist = toImpl(blacklistedURLPatterns);
+
+    Ref&lt;API::UserStyleSheet&gt; userStyleSheet = API::UserStyleSheet::create(WebCore::UserStyleSheet { source, (baseURLString.isEmpty() ? WebCore::blankURL() : WebCore::URL(WebCore::URL(), baseURLString)), whitelist ? whitelist-&gt;toStringVector() : Vector&lt;String&gt;(), blacklist ? blacklist-&gt;toStringVector() : Vector&lt;String&gt;(), toUserContentInjectedFrames(injectedFrames), WebCore::UserStyleUserLevel }, API::UserContentWorld::normalWorld());
+
+    toImpl(pageGroupRef)-&gt;userContentController().addUserStyleSheet(userStyleSheet.get());
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-void WKPageGroupRemoveAllUserStyleSheets(WKPageGroupRef pageGroupRef)
</del><ins>+void WKPageGroupRemoveAllUserStyleSheets(WKPageGroupRef pageGroup)
</ins><span class="cx"> {
</span><del>-    toImpl(pageGroupRef)-&gt;removeAllUserStyleSheets();
</del><ins>+    toImpl(pageGroup)-&gt;userContentController().removeAllUserStyleSheets();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-void WKPageGroupAddUserScript(WKPageGroupRef pageGroupRef, WKStringRef sourceRef, WKURLRef baseURL, WKArrayRef whitelistedURLPatterns, WKArrayRef blacklistedURLPatterns, WKUserContentInjectedFrames injectedFrames, _WKUserScriptInjectionTime injectionTime)
</del><ins>+void WKPageGroupAddUserScript(WKPageGroupRef pageGroupRef, WKStringRef sourceRef, WKURLRef baseURLRef, WKArrayRef whitelistedURLPatterns, WKArrayRef blacklistedURLPatterns, WKUserContentInjectedFrames injectedFrames, _WKUserScriptInjectionTime injectionTime)
</ins><span class="cx"> {
</span><del>-    toImpl(pageGroupRef)-&gt;addUserScript(toWTFString(sourceRef), toWTFString(baseURL), toImpl(whitelistedURLPatterns), toImpl(blacklistedURLPatterns), toUserContentInjectedFrames(injectedFrames), toUserScriptInjectionTime(injectionTime));
</del><ins>+    auto source = toWTFString(sourceRef);
+
+    if (source.isEmpty())
+        return;
+
+    auto baseURLString = toWTFString(baseURLRef);
+    auto whitelist = toImpl(whitelistedURLPatterns);
+    auto blacklist = toImpl(blacklistedURLPatterns);
+
+    Ref&lt;API::UserScript&gt; userScript = API::UserScript::create(WebCore::UserScript { source, (baseURLString.isEmpty() ? WebCore::blankURL() : WebCore::URL(WebCore::URL(), baseURLString)), whitelist ? whitelist-&gt;toStringVector() : Vector&lt;String&gt;(), blacklist ? blacklist-&gt;toStringVector() : Vector&lt;String&gt;(), toUserScriptInjectionTime(injectionTime), toUserContentInjectedFrames(injectedFrames) }, API::UserContentWorld::normalWorld());
+    toImpl(pageGroupRef)-&gt;userContentController().addUserScript(userScript.get());
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void WKPageGroupRemoveAllUserScripts(WKPageGroupRef pageGroupRef)
</span><span class="cx"> {
</span><del>-    toImpl(pageGroupRef)-&gt;removeAllUserScripts();
</del><ins>+    toImpl(pageGroupRef)-&gt;userContentController().removeAllUserScripts();
</ins><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPICWKPageGrouph"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/C/WKPageGroup.h (207167 => 207168)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/C/WKPageGroup.h        2016-10-11 21:58:20 UTC (rev 207167)
+++ trunk/Source/WebKit2/UIProcess/API/C/WKPageGroup.h        2016-10-11 22:01:45 UTC (rev 207168)
</span><span class="lines">@@ -38,8 +38,6 @@
</span><span class="cx"> 
</span><span class="cx"> WK_EXPORT WKPageGroupRef WKPageGroupCreateWithIdentifier(WKStringRef identifier);
</span><span class="cx"> 
</span><del>-WK_EXPORT WKStringRef WKPageGroupCopyIdentifier(WKPageGroupRef pageGroup);
-
</del><span class="cx"> WK_EXPORT void WKPageGroupSetPreferences(WKPageGroupRef pageGroup, WKPreferencesRef preferences);
</span><span class="cx"> WK_EXPORT WKPreferencesRef WKPageGroupGetPreferences(WKPageGroupRef pageGroup);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessWebPageGroupcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/WebPageGroup.cpp (207167 => 207168)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/WebPageGroup.cpp        2016-10-11 21:58:20 UTC (rev 207167)
+++ trunk/Source/WebKit2/UIProcess/WebPageGroup.cpp        2016-10-11 22:01:45 UTC (rev 207168)
</span><span class="lines">@@ -142,55 +142,4 @@
</span><span class="cx">     return *m_userContentController;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void WebPageGroup::addUserStyleSheet(const String&amp; source, const String&amp; baseURL, API::Array* whitelist, API::Array* blacklist, WebCore::UserContentInjectedFrames injectedFrames, WebCore::UserStyleLevel level)
-{
-    if (source.isEmpty())
-        return;
-
-    Ref&lt;API::UserStyleSheet&gt; userStyleSheet = API::UserStyleSheet::create(WebCore::UserStyleSheet { source, (baseURL.isEmpty() ? WebCore::blankURL() : WebCore::URL(WebCore::URL(), baseURL)), whitelist ? whitelist-&gt;toStringVector() : Vector&lt;String&gt;(), blacklist ? blacklist-&gt;toStringVector() : Vector&lt;String&gt;(), injectedFrames, level }, API::UserContentWorld::normalWorld());
-    m_userContentController-&gt;addUserStyleSheet(userStyleSheet.get());
-}
-
-void WebPageGroup::addUserScript(const String&amp; source, const String&amp; baseURL, API::Array* whitelist, API::Array* blacklist, WebCore::UserContentInjectedFrames injectedFrames, WebCore::UserScriptInjectionTime injectionTime)
-{
-    if (source.isEmpty())
-        return;
-
-    Ref&lt;API::UserScript&gt; userScript = API::UserScript::create(WebCore::UserScript { source, (baseURL.isEmpty() ? WebCore::blankURL() : WebCore::URL(WebCore::URL(), baseURL)), whitelist ? whitelist-&gt;toStringVector() : Vector&lt;String&gt;(), blacklist ? blacklist-&gt;toStringVector() : Vector&lt;String&gt;(), injectionTime, injectedFrames }, API::UserContentWorld::normalWorld());
-    m_userContentController-&gt;addUserScript(userScript.get());
-}
-
-void WebPageGroup::removeAllUserStyleSheets()
-{
-    m_userContentController-&gt;removeAllUserStyleSheets();
-}
-
-void WebPageGroup::removeAllUserScripts()
-{
-    m_userContentController-&gt;removeAllUserScripts();
-}
-
-void WebPageGroup::removeAllUserContent()
-{
-    m_userContentController-&gt;removeAllUserStyleSheets();
-    m_userContentController-&gt;removeAllUserScripts();
-}
-
-#if ENABLE(CONTENT_EXTENSIONS)
-void WebPageGroup::addUserContentExtension(API::UserContentExtension&amp; userContentExtension)
-{
-    m_userContentController-&gt;addUserContentExtension(userContentExtension);
-}
-
-void WebPageGroup::removeUserContentExtension(const String&amp; contentExtensionName)
-{
-    m_userContentController-&gt;removeUserContentExtension(contentExtensionName);
-}
-
-void WebPageGroup::removeAllUserContentExtensions()
-{
-    m_userContentController-&gt;removeAllUserContentExtensions();
-}
-#endif
-
</del><span class="cx"> } // namespace WebKit
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessWebPageGrouph"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/WebPageGroup.h (207167 => 207168)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/WebPageGroup.h        2016-10-11 21:58:20 UTC (rev 207167)
+++ trunk/Source/WebKit2/UIProcess/WebPageGroup.h        2016-10-11 22:01:45 UTC (rev 207168)
</span><span class="lines">@@ -53,7 +53,6 @@
</span><span class="cx">     void addPage(WebPageProxy*);
</span><span class="cx">     void removePage(WebPageProxy*);
</span><span class="cx"> 
</span><del>-    const String&amp; identifier() const { return m_data.identifier; }
</del><span class="cx">     uint64_t pageGroupID() const { return m_data.pageGroupID; }
</span><span class="cx"> 
</span><span class="cx">     const WebPageGroupData&amp; data() const { return m_data; }
</span><span class="lines">@@ -64,21 +63,7 @@
</span><span class="cx"> 
</span><span class="cx">     WebUserContentControllerProxy&amp; userContentController();
</span><span class="cx"> 
</span><del>-    void addUserStyleSheet(const String&amp; source, const String&amp; baseURL, API::Array* whitelist, API::Array* blacklist, WebCore::UserContentInjectedFrames, WebCore::UserStyleLevel);
-    void addUserScript(const String&amp; source, const String&amp; baseURL, API::Array* whitelist, API::Array* blacklist, WebCore::UserContentInjectedFrames, WebCore::UserScriptInjectionTime);
-    void removeAllUserStyleSheets();
-    void removeAllUserScripts();
-    void removeAllUserContent();
-
-#if ENABLE(CONTENT_EXTENSIONS)
-    void addUserContentExtension(API::UserContentExtension&amp;);
-    void removeUserContentExtension(const String&amp;);
-    void removeAllUserContentExtensions();
-#endif
-
</del><span class="cx"> private:
</span><del>-    template&lt;typename T&gt; void sendToAllProcessesInGroup(const T&amp;, uint64_t destinationID);
-
</del><span class="cx">     WebPageGroupData m_data;
</span><span class="cx">     RefPtr&lt;WebPreferences&gt; m_preferences;
</span><span class="cx">     RefPtr&lt;WebUserContentControllerProxy&gt; m_userContentController;
</span><span class="lines">@@ -85,21 +70,6 @@
</span><span class="cx">     HashSet&lt;WebPageProxy*&gt; m_pages;
</span><span class="cx"> };
</span><span class="cx"> 
</span><del>-template&lt;typename T&gt;
-void WebPageGroup::sendToAllProcessesInGroup(const T&amp; message, uint64_t destinationID)
-{
-    HashSet&lt;WebProcessProxy*&gt; processesSeen;
-
-    for (WebPageProxy* webPageProxy : m_pages) {
-        WebProcessProxy&amp; webProcessProxy = webPageProxy-&gt;process();
-        if (!processesSeen.add(&amp;webProcessProxy).isNewEntry)
-            continue;
-
-        if (webProcessProxy.canSendMessage())
-            webProcessProxy.send(T(message), destinationID);
-    }
-}
-
</del><span class="cx"> } // namespace WebKit
</span><span class="cx"> 
</span><span class="cx"> #endif // WebPageGroup_h
</span></span></pre>
</div>
</div>

</body>
</html>