Changeset 213871 in webkit
- Timestamp:
- Mar 13, 2017 2:50:50 PM (7 years ago)
- Location:
- trunk/Source
- Files:
-
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r213869 r213871 1 2017-03-13 John Wilander <wilander@apple.com> 2 3 Resource Load Statistics: More efficient network process messaging + Fix bug in user interaction reporting 4 https://bugs.webkit.org/show_bug.cgi?id=169506 5 6 Reviewed by Alex Christensen. 7 8 Covered by previous test which now follows the code path more closely to when reporting 9 happens in the web process. 10 11 * loader/ResourceLoadObserver.cpp: 12 (WebCore::ResourceLoadObserver::logUserInteractionWithReducedTimeResolution): 13 No longer explicitly calls ResourceLoadStatisticsStore::fireShouldPartitionCookiesHandler(). 14 Instead just calls ResourceLoadStatisticsStore::fireDataModificationHandler(). 15 (WebCore::ResourceLoadObserver::logUserInteraction): 16 Updated to call the new ResourceLoadStatisticsStore::fireShouldPartitionCookiesHandler(). 17 (WebCore::ResourceLoadObserver::fireShouldPartitionCookiesHandler): 18 Now takes two vectors – domainsToRemove and domainsToAdd. 19 * loader/ResourceLoadObserver.h: 20 * loader/ResourceLoadStatistics.cpp: 21 (WebCore::ResourceLoadStatistics::toString): 22 Added boolean field isMarkedForCookiePartitioning. 23 (WebCore::ResourceLoadStatistics::merge): 24 Added boolean field isMarkedForCookiePartitioning. 25 * loader/ResourceLoadStatistics.h: 26 Added boolean field isMarkedForCookiePartitioning. 27 * loader/ResourceLoadStatisticsStore.cpp: 28 (WebCore::ResourceLoadStatisticsStore::readDataFromDecoder): 29 Now marks statistics with isMarkedForCookiePartitioning before sending them off to 30 ResourceLoadStatisticsStore::fireShouldPartitionCookiesHandler(). 31 (WebCore::ResourceLoadStatisticsStore::setShouldPartitionCookiesCallback): 32 Now accepts a handler with two vectors. 33 (WebCore::ResourceLoadStatisticsStore::fireShouldPartitionCookiesHandler): 34 Now the only exported version of this function is the one without arguments. 35 The one internal to WebCore accepts two vectors – domainsToRemove and domainsToAdd. 36 The exported one generates the two vectors and then calls the internal one. 37 (WebCore::ResourceLoadStatisticsStore::hasHadRecentUserInteraction): 38 No longer explicitly calls ResourceLoadStatisticsStore::fireShouldPartitionCookiesHandler(). 39 * loader/ResourceLoadStatisticsStore.h: 40 * platform/network/NetworkStorageSession.h: 41 * platform/network/cf/NetworkStorageSessionCFNet.cpp: 42 (WebCore::NetworkStorageSession::setShouldPartitionCookiesForHosts): 43 Now takes two vectors – domainsToRemove and domainsToAdd. 44 1 45 2017-03-13 Dean Jackson <dino@apple.com> 2 46 -
trunk/Source/WebCore/loader/ResourceLoadObserver.cpp
r213688 r213871 327 327 statistics.mostRecentUserInteraction = newTimestamp; 328 328 329 m_store->fireShouldPartitionCookiesHandler(primaryDomainStr, false);330 329 m_store->fireDataModificationHandler(); 331 330 } … … 342 341 statistics.mostRecentUserInteraction = WTF::currentTime(); 343 342 344 m_store->fireShouldPartitionCookiesHandler( primaryDomainStr, false);343 m_store->fireShouldPartitionCookiesHandler({primaryDomainStr}, { }); 345 344 } 346 345 … … 433 432 } 434 433 435 void ResourceLoadObserver::fireShouldPartitionCookiesHandler(const String& hostName, bool value)436 { 437 m_store->fireShouldPartitionCookiesHandler( primaryDomain(hostName), value);434 void ResourceLoadObserver::fireShouldPartitionCookiesHandler(const Vector<String>& domainsToRemove, const Vector<String>& domainsToAdd) 435 { 436 m_store->fireShouldPartitionCookiesHandler(domainsToRemove, domainsToAdd); 438 437 } 439 438 -
trunk/Source/WebCore/loader/ResourceLoadObserver.h
r213688 r213871 67 67 68 68 WEBCORE_EXPORT void fireDataModificationHandler(); 69 WEBCORE_EXPORT void fireShouldPartitionCookiesHandler(const String& primaryDomain, bool value);69 WEBCORE_EXPORT void fireShouldPartitionCookiesHandler(const Vector<String>& domainsToRemove, const Vector<String>& domainsToAdd); 70 70 71 71 WEBCORE_EXPORT RefPtr<ResourceLoadStatisticsStore> statisticsStore(); -
trunk/Source/WebCore/loader/ResourceLoadStatistics.cpp
r212183 r213871 295 295 builder.append('\n'); 296 296 297 // In-memory only 298 appendBoolean(builder, "isMarkedForCookiePartitioning", isMarkedForCookiePartitioning); 299 builder.append('\n'); 300 297 301 builder.append('\n'); 298 302 … … 354 358 isPrevalentResource |= other.isPrevalentResource; 355 359 dataRecordsRemoved += other.dataRecordsRemoved; 356 } 357 358 } 360 361 // In-memory only 362 isMarkedForCookiePartitioning |= other.isMarkedForCookiePartitioning; 363 } 364 365 } -
trunk/Source/WebCore/loader/ResourceLoadStatistics.h
r212183 r213871 88 88 bool isPrevalentResource { false }; 89 89 unsigned dataRecordsRemoved { 0 }; 90 91 // In-memory only 92 bool isMarkedForCookiePartitioning { false }; 90 93 }; 91 94 -
trunk/Source/WebCore/loader/ResourceLoadStatisticsStore.cpp
r213688 r213871 104 104 prevalentResourceDomainsWithoutUserInteraction.reserveInitialCapacity(loadedStatistics.size()); 105 105 for (auto& statistics : loadedStatistics) { 106 if (statistics.isPrevalentResource && !statistics.hadUserInteraction) { 107 prevalentResourceDomainsWithoutUserInteraction.uncheckedAppend(statistics.highLevelDomain); 108 statistics.isMarkedForCookiePartitioning = true; 109 } 106 110 m_resourceStatisticsMap.set(statistics.highLevelDomain, statistics); 107 if (statistics.isPrevalentResource && !statistics.hadUserInteraction) 108 prevalentResourceDomainsWithoutUserInteraction.uncheckedAppend(statistics.highLevelDomain); 109 } 110 111 fireShouldPartitionCookiesHandler(prevalentResourceDomainsWithoutUserInteraction, true); 111 } 112 113 fireShouldPartitionCookiesHandler({ }, prevalentResourceDomainsWithoutUserInteraction); 112 114 } 113 115 … … 156 158 } 157 159 158 void ResourceLoadStatisticsStore::setShouldPartitionCookiesCallback(std::function<void(const Vector<String>& primaryDomains, bool value)>&& handler)160 void ResourceLoadStatisticsStore::setShouldPartitionCookiesCallback(std::function<void(const Vector<String>& domainsToRemove, const Vector<String>& domainsToAdd)>&& handler) 159 161 { 160 162 m_shouldPartitionCookiesForDomainsHandler = WTFMove(handler); … … 172 174 } 173 175 174 void ResourceLoadStatisticsStore::fireShouldPartitionCookiesHandler(const String& primaryDomain, bool value) 175 { 176 Vector<String> domainVector; 177 domainVector.append(primaryDomain); 178 fireShouldPartitionCookiesHandler(domainVector, value); 179 } 180 181 void ResourceLoadStatisticsStore::fireShouldPartitionCookiesHandler(const Vector<String>& primaryDomains, bool value) 182 { 176 void ResourceLoadStatisticsStore::fireShouldPartitionCookiesHandler() 177 { 178 Vector<String> domainsToRemove; 179 Vector<String> domainsToAdd; 180 181 for (auto& resourceStatistic : m_resourceStatisticsMap.values()) { 182 bool recentUserInteraction = hasHadRecentUserInteraction(resourceStatistic); 183 if (resourceStatistic.isMarkedForCookiePartitioning && recentUserInteraction) { 184 resourceStatistic.isMarkedForCookiePartitioning = false; 185 domainsToRemove.append(resourceStatistic.highLevelDomain); 186 } else if (!resourceStatistic.isMarkedForCookiePartitioning && !recentUserInteraction && resourceStatistic.isPrevalentResource) { 187 resourceStatistic.isMarkedForCookiePartitioning = true; 188 domainsToAdd.append(resourceStatistic.highLevelDomain); 189 } 190 } 191 192 fireShouldPartitionCookiesHandler(domainsToRemove, domainsToAdd); 193 } 194 195 void ResourceLoadStatisticsStore::fireShouldPartitionCookiesHandler(const Vector<String>& domainsToRemove, const Vector<String>& domainsToAdd) 196 { 197 if (domainsToRemove.isEmpty() && domainsToAdd.isEmpty()) 198 return; 199 183 200 if (m_shouldPartitionCookiesForDomainsHandler) 184 m_shouldPartitionCookiesForDomainsHandler( primaryDomains, value);201 m_shouldPartitionCookiesForDomainsHandler(domainsToRemove, domainsToAdd); 185 202 } 186 203 … … 209 226 resourceStatistic.hadUserInteraction = false; 210 227 211 if (resourceStatistic.isPrevalentResource)212 fireShouldPartitionCookiesHandler(resourceStatistic.highLevelDomain, true);213 214 228 return false; 215 229 } -
trunk/Source/WebCore/loader/ResourceLoadStatisticsStore.h
r213688 r213871 59 59 60 60 WEBCORE_EXPORT void setNotificationCallback(std::function<void()>); 61 WEBCORE_EXPORT void setShouldPartitionCookiesCallback(std::function<void(const Vector<String>& primaryDomains, bool value)>&&);61 WEBCORE_EXPORT void setShouldPartitionCookiesCallback(std::function<void(const Vector<String>& domainsToRemove, const Vector<String>& domainsToAdd)>&&); 62 62 WEBCORE_EXPORT void setWritePersistentStoreCallback(std::function<void()>&&); 63 64 63 65 64 void fireDataModificationHandler(); 66 65 void setTimeToLiveUserInteraction(double seconds); 67 WEBCORE_EXPORT void fireShouldPartitionCookiesHandler( const String& primaryDomain, bool value);68 WEBCORE_EXPORT void fireShouldPartitionCookiesHandler(const Vector<String>& primaryDomain, bool value);66 WEBCORE_EXPORT void fireShouldPartitionCookiesHandler(); 67 void fireShouldPartitionCookiesHandler(const Vector<String>& domainsToRemove, const Vector<String>& domainsToAdd); 69 68 70 69 WEBCORE_EXPORT void processStatistics(std::function<void(ResourceLoadStatistics&)>&&); … … 78 77 HashMap<String, ResourceLoadStatistics> m_resourceStatisticsMap; 79 78 std::function<void()> m_dataAddedHandler; 80 std::function<void(const Vector<String>& primaryDomains, bool value)> m_shouldPartitionCookiesForDomainsHandler;79 std::function<void(const Vector<String>&, const Vector<String>&)> m_shouldPartitionCookiesForDomainsHandler; 81 80 std::function<void()> m_writePersistentStoreHandler; 82 81 }; -
trunk/Source/WebCore/platform/network/NetworkStorageSession.h
r213759 r213871 81 81 #if HAVE(CFNETWORK_STORAGE_PARTITIONING) 82 82 WEBCORE_EXPORT bool shouldPartitionCookiesForHost(const String&); 83 WEBCORE_EXPORT void setShouldPartitionCookiesForHosts(const Vector<String>& , bool value);83 WEBCORE_EXPORT void setShouldPartitionCookiesForHosts(const Vector<String>& domainsToRemove, const Vector<String>& domainsToAdd); 84 84 #endif 85 85 #elif USE(SOUP) -
trunk/Source/WebCore/platform/network/cf/NetworkStorageSessionCFNet.cpp
r213759 r213871 155 155 } 156 156 157 void NetworkStorageSession::setShouldPartitionCookiesForHosts(const Vector<String>& hosts, bool value)157 void NetworkStorageSession::setShouldPartitionCookiesForHosts(const Vector<String>& domainsToRemove, const Vector<String>& domainsToAdd) 158 158 { 159 if (value) 160 m_topPrivatelyControlledDomainsForCookiePartitioning.add(hosts.begin(), hosts.end()); 161 else { 162 for (auto& host : hosts) 163 m_topPrivatelyControlledDomainsForCookiePartitioning.remove(host); 159 if (!domainsToRemove.isEmpty()) { 160 for (auto& domain : domainsToRemove) 161 m_topPrivatelyControlledDomainsForCookiePartitioning.remove(domain); 164 162 } 163 164 if (!domainsToAdd.isEmpty()) 165 m_topPrivatelyControlledDomainsForCookiePartitioning.add(domainsToAdd.begin(), domainsToAdd.end()); 165 166 } 166 167 -
trunk/Source/WebKit2/ChangeLog
r213869 r213871 1 2017-03-13 John Wilander <wilander@apple.com> 2 3 Resource Load Statistics: More efficient network process messaging + Fix bug in user interaction reporting 4 https://bugs.webkit.org/show_bug.cgi?id=169506 5 6 Reviewed by Alex Christensen. 7 8 * NetworkProcess/NetworkProcess.cpp: 9 (WebKit::NetworkProcess::shouldPartitionCookiesForTopPrivatelyOwnedDomains): 10 Now takes two vectors – domainsToRemove and domainsToAdd. 11 * NetworkProcess/NetworkProcess.h: 12 * NetworkProcess/NetworkProcess.messages.in: 13 The message now takes two vectors – domainsToRemove and domainsToAdd. 14 * UIProcess/Network/NetworkProcessProxy.cpp: 15 (WebKit::NetworkProcessProxy::shouldPartitionCookiesForTopPrivatelyOwnedDomains): 16 Now takes two vectors – domainsToRemove and domainsToAdd. 17 * UIProcess/Network/NetworkProcessProxy.h: 18 * UIProcess/Network/NetworkProcessProxy.messages.in: 19 The message now takes two vectors – domainsToRemove and domainsToAdd. 20 * UIProcess/WebResourceLoadStatisticsManager.cpp: 21 (WebKit::WebResourceLoadStatisticsManager::fireShouldPartitionCookiesHandler): 22 Now converts to the two vectors needed by 23 WebCore::ResourceLoadObserver::fireShouldPartitionCookiesHandler(). 24 * UIProcess/WebResourceLoadStatisticsStore.cpp: 25 (WebKit::WebResourceLoadStatisticsStore::classifyResource): 26 No longer explicitly calls ResourceLoadStatisticsStore::fireShouldPartitionCookiesHandler(). 27 (WebKit::WebResourceLoadStatisticsStore::removeDataRecords): 28 Changed the order of two blocks to not build a vector if we are to return early. 29 (WebKit::WebResourceLoadStatisticsStore::resourceLoadStatisticsUpdated): 30 Now calls WebCore::ResourceLoadObserver::fireShouldPartitionCookiesHandler(). 31 (WebKit::WebResourceLoadStatisticsStore::registerSharedResourceLoadObserver): 32 Now takes a handler with two vectors – domainsToRemove and domainsToAdd. 33 * UIProcess/WebResourceLoadStatisticsStore.h: 34 * UIProcess/WebsiteData/WebsiteDataStore.cpp: 35 (WebKit::WebsiteDataStore::shouldPartitionCookiesForTopPrivatelyOwnedDomains): 36 Now takes two vectors – domainsToRemove and domainsToAdd. 37 (WebKit::WebsiteDataStore::registerSharedResourceLoadObserver): 38 Now submits a handler that takes two vectors – domainsToRemove and domainsToAdd. 39 * UIProcess/WebsiteData/WebsiteDataStore.h: 40 1 41 2017-03-13 Dean Jackson <dino@apple.com> 2 42 -
trunk/Source/WebKit2/NetworkProcess/NetworkProcess.cpp
r213760 r213871 312 312 313 313 #if HAVE(CFNETWORK_STORAGE_PARTITIONING) 314 void NetworkProcess::shouldPartitionCookiesForTopPrivatelyOwnedDomains(const Vector<String>& domains , bool value)315 { 316 NetworkStorageSession::defaultStorageSession().setShouldPartitionCookiesForHosts(domains , value);314 void NetworkProcess::shouldPartitionCookiesForTopPrivatelyOwnedDomains(const Vector<String>& domainsToRemove, const Vector<String>& domainsToAdd) 315 { 316 NetworkStorageSession::defaultStorageSession().setShouldPartitionCookiesForHosts(domainsToRemove, domainsToAdd); 317 317 } 318 318 #endif -
trunk/Source/WebKit2/NetworkProcess/NetworkProcess.h
r213623 r213871 118 118 119 119 #if HAVE(CFNETWORK_STORAGE_PARTITIONING) 120 void shouldPartitionCookiesForTopPrivatelyOwnedDomains(const Vector<String>& , bool value);120 void shouldPartitionCookiesForTopPrivatelyOwnedDomains(const Vector<String>& domainsToRemove, const Vector<String>& domainsToAdd); 121 121 #endif 122 122 -
trunk/Source/WebKit2/NetworkProcess/NetworkProcess.messages.in
r213623 r213871 80 80 81 81 #if HAVE(CFNETWORK_STORAGE_PARTITIONING) 82 ShouldPartitionCookiesForTopPrivatelyOwnedDomains(Vector<String> topPrivatelyOwnedDomains, bool value)82 ShouldPartitionCookiesForTopPrivatelyOwnedDomains(Vector<String> domainsToRemove, Vector<String> domainsToAdd) 83 83 #endif 84 84 } -
trunk/Source/WebKit2/UIProcess/Network/NetworkProcessProxy.cpp
r213623 r213871 294 294 295 295 #if HAVE(CFNETWORK_STORAGE_PARTITIONING) 296 void NetworkProcessProxy::shouldPartitionCookiesForTopPrivatelyOwnedDomains(const Vector<String>& topPrivatelyOwnedDomains, bool value)297 { 298 connection()->send(Messages::NetworkProcess::ShouldPartitionCookiesForTopPrivatelyOwnedDomains( topPrivatelyOwnedDomains, value), 0);296 void NetworkProcessProxy::shouldPartitionCookiesForTopPrivatelyOwnedDomains(const Vector<String>& domainsToRemove, const Vector<String>& domainsToAdd) 297 { 298 connection()->send(Messages::NetworkProcess::ShouldPartitionCookiesForTopPrivatelyOwnedDomains(domainsToRemove, domainsToAdd), 0); 299 299 } 300 300 #endif -
trunk/Source/WebKit2/UIProcess/Network/NetworkProcessProxy.h
r213623 r213871 111 111 void grantSandboxExtensionsToDatabaseProcessForBlobs(uint64_t requestID, const Vector<String>& paths); 112 112 #if HAVE(CFNETWORK_STORAGE_PARTITIONING) 113 void shouldPartitionCookiesForTopPrivatelyOwnedDomains(const Vector<String>& , bool value);113 void shouldPartitionCookiesForTopPrivatelyOwnedDomains(const Vector<String>& domainsToRemove, const Vector<String>& domainsToAdd); 114 114 #endif 115 115 void logDiagnosticMessage(uint64_t pageID, const String& message, const String& description, WebCore::ShouldSample); -
trunk/Source/WebKit2/UIProcess/Network/NetworkProcessProxy.messages.in
r213623 r213871 33 33 34 34 #if HAVE(CFNETWORK_STORAGE_PARTITIONING) 35 ShouldPartitionCookiesForTopPrivatelyOwnedDomains(Vector<String> topPrivatelyOwnedDomains, bool value)35 ShouldPartitionCookiesForTopPrivatelyOwnedDomains(Vector<String> domainsToRemove, Vector<String> domainsToAdd) 36 36 #endif 37 37 -
trunk/Source/WebKit2/UIProcess/WebResourceLoadStatisticsManager.cpp
r213688 r213871 89 89 void WebResourceLoadStatisticsManager::fireShouldPartitionCookiesHandler(const String& hostName, bool value) 90 90 { 91 WebCore::ResourceLoadObserver::sharedObserver().fireShouldPartitionCookiesHandler(hostName, value); 91 if (value) 92 WebCore::ResourceLoadObserver::sharedObserver().fireShouldPartitionCookiesHandler({ }, {hostName}); 93 else 94 WebCore::ResourceLoadObserver::sharedObserver().fireShouldPartitionCookiesHandler({hostName}, { }); 92 95 } 93 96 -
trunk/Source/WebKit2/UIProcess/WebResourceLoadStatisticsStore.cpp
r213688 r213871 86 86 { 87 87 if (!resourceStatistic.isPrevalentResource 88 && m_resourceLoadStatisticsClassifier.hasPrevalentResourceCharacteristics(resourceStatistic)) {88 && m_resourceLoadStatisticsClassifier.hasPrevalentResourceCharacteristics(resourceStatistic)) 89 89 resourceStatistic.isPrevalentResource = true; 90 if (!resourceStatistic.hadUserInteraction)91 m_resourceLoadStatisticsStore->fireShouldPartitionCookiesHandler(resourceStatistic.highLevelDomain, true);92 }93 90 } 94 91 … … 96 93 { 97 94 if (m_dataRecordsRemovalPending) 98 return;99 100 Vector<String> prevalentResourceDomains = coreStore().prevalentResourceDomainsWithoutUserInteraction();101 if (!prevalentResourceDomains.size())102 95 return; 103 96 … … 107 100 return; 108 101 102 Vector<String> prevalentResourceDomains = coreStore().prevalentResourceDomainsWithoutUserInteraction(); 103 if (!prevalentResourceDomains.size()) 104 return; 105 109 106 m_dataRecordsRemovalPending = true; 110 107 m_lastTimeDataRecordsWereRemoved = now; … … 154 151 { 155 152 coreStore().mergeStatistics(origins); 153 coreStore().fireShouldPartitionCookiesHandler(); 156 154 processStatisticsAndDataRecords(); 157 155 } … … 182 180 } 183 181 184 void WebResourceLoadStatisticsStore::registerSharedResourceLoadObserver(std::function<void(const Vector<String>& primaryDomain, bool value)>&& shouldPartitionCookiesForDomainsHandler)182 void WebResourceLoadStatisticsStore::registerSharedResourceLoadObserver(std::function<void(const Vector<String>& domainsToRemove, const Vector<String>& domainsToAdd)>&& shouldPartitionCookiesForDomainsHandler) 185 183 { 186 184 registerSharedResourceLoadObserver(); 187 m_resourceLoadStatisticsStore->setShouldPartitionCookiesCallback([this, shouldPartitionCookiesForDomainsHandler = WTFMove(shouldPartitionCookiesForDomainsHandler)] (const Vector<String>& primaryDomains, bool value) {188 shouldPartitionCookiesForDomainsHandler( primaryDomains, value);185 m_resourceLoadStatisticsStore->setShouldPartitionCookiesCallback([this, shouldPartitionCookiesForDomainsHandler = WTFMove(shouldPartitionCookiesForDomainsHandler)] (const Vector<String>& domainsToRemove, const Vector<String>& domainsToAdd) { 186 shouldPartitionCookiesForDomainsHandler(domainsToRemove, domainsToAdd); 189 187 }); 190 188 m_resourceLoadStatisticsStore->setWritePersistentStoreCallback([this]() { -
trunk/Source/WebKit2/UIProcess/WebResourceLoadStatisticsStore.h
r213688 r213871 64 64 bool resourceLoadStatisticsEnabled() const; 65 65 void registerSharedResourceLoadObserver(); 66 void registerSharedResourceLoadObserver(std::function<void(const Vector<String>& primaryDomain, bool value)>&& shouldPartitionCookiesForDomainsHandler);66 void registerSharedResourceLoadObserver(std::function<void(const Vector<String>& domainsToRemove, const Vector<String>& domainsToAdd)>&& shouldPartitionCookiesForDomainsHandler); 67 67 68 68 void resourceLoadStatisticsUpdated(const Vector<WebCore::ResourceLoadStatistics>& origins); -
trunk/Source/WebKit2/UIProcess/WebsiteData/WebsiteDataStore.cpp
r213690 r213871 1060 1060 1061 1061 #if HAVE(CFNETWORK_STORAGE_PARTITIONING) 1062 void WebsiteDataStore::shouldPartitionCookiesForTopPrivatelyOwnedDomains(const Vector<String>& topPrivatelyOwnedDomains, bool value)1062 void WebsiteDataStore::shouldPartitionCookiesForTopPrivatelyOwnedDomains(const Vector<String>& domainsToRemove, const Vector<String>& domainsToAdd) 1063 1063 { 1064 1064 for (auto& processPool : processPools()) 1065 processPool->sendToNetworkingProcess(Messages::NetworkProcess::ShouldPartitionCookiesForTopPrivatelyOwnedDomains( topPrivatelyOwnedDomains, value));1065 processPool->sendToNetworkingProcess(Messages::NetworkProcess::ShouldPartitionCookiesForTopPrivatelyOwnedDomains(domainsToRemove, domainsToAdd)); 1066 1066 } 1067 1067 #endif … … 1234 1234 #if HAVE(CFNETWORK_STORAGE_PARTITIONING) 1235 1235 m_resourceLoadStatistics->registerSharedResourceLoadObserver( 1236 [this] (const Vector<String>& topPrivatelyOwnedDomains, bool value) {1237 this->shouldPartitionCookiesForTopPrivatelyOwnedDomains( topPrivatelyOwnedDomains, value);1236 [this] (const Vector<String>& domainsToRemove, const Vector<String>& domainsToAdd) { 1237 this->shouldPartitionCookiesForTopPrivatelyOwnedDomains(domainsToRemove, domainsToAdd); 1238 1238 }); 1239 1239 #else -
trunk/Source/WebKit2/UIProcess/WebsiteData/WebsiteDataStore.h
r213690 r213871 93 93 94 94 #if HAVE(CFNETWORK_STORAGE_PARTITIONING) 95 void shouldPartitionCookiesForTopPrivatelyOwnedDomains(const Vector<String>& , bool value);95 void shouldPartitionCookiesForTopPrivatelyOwnedDomains(const Vector<String>& domainsToRemove, const Vector<String>& domainsToAdd); 96 96 #endif 97 97 void resolveDirectoriesIfNecessary();
Note: See TracChangeset
for help on using the changeset viewer.