Changeset 216690 in webkit
- Timestamp:
- May 11, 2017 1:04:03 PM (7 years ago)
- Location:
- trunk/Source
- Files:
-
- 1 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r216688 r216690 1 2017-05-11 John Wilander <wilander@apple.com> 2 3 Resource Load Statistics: Enable configuration through preferences 4 https://bugs.webkit.org/show_bug.cgi?id=171949 5 <rdar://problem/31894518> 6 7 Reviewed by Alex Christensen. 8 9 No new tests. Just an added setter. 10 11 * loader/ResourceLoadObserver.cpp: 12 (WebCore::ResourceLoadObserver::setReducedTimestampResolution): 13 1 14 2017-05-11 Frederic Wang <fwang@igalia.com> 2 15 -
trunk/Source/WebCore/loader/ResourceLoadObserver.cpp
r216171 r216690 433 433 } 434 434 435 void ResourceLoadObserver::setReducedTimestampResolution(double seconds) 436 { 437 if (seconds > 0) 438 timestampResolution = seconds; 439 } 440 435 441 void ResourceLoadObserver::fireDataModificationHandler() 436 442 { -
trunk/Source/WebKit2/ChangeLog
r216675 r216690 1 2017-05-11 John Wilander <wilander@apple.com> 2 3 Resource Load Statistics: Enable configuration through preferences 4 https://bugs.webkit.org/show_bug.cgi?id=171949 5 <rdar://problem/31894518> 6 7 Reviewed by Alex Christensen. 8 9 * Shared/WebPreferencesDefinitions.h: 10 Added ResourceLoadStatisticsTimeToLiveUserInteraction, 11 ResourceLoadStatisticsTimeToLiveCookiePartitionFree, and 12 ResourceLoadStatisticsReducedTimestampResolution. 13 * UIProcess/Cocoa/WebResourceLoadStatisticsManagerCocoa.mm: Added. 14 (WebKit::WebResourceLoadStatisticsManager::registerUserDefaultsIfNeeded): 15 * UIProcess/WebResourceLoadStatisticsManager.h: 16 * UIProcess/WebResourceLoadStatisticsStore.cpp: 17 (WebKit::WebResourceLoadStatisticsStore::registerSharedResourceLoadObserver): 18 Now calls WebResourceLoadStatisticsManager::registerUserDefaultsIfNeeded(). 19 * WebKit2.xcodeproj/project.pbxproj: 20 1 21 2017-05-11 Claudio Saavedra <csaavedra@igalia.com> 2 22 -
trunk/Source/WebKit2/Shared/WebPreferencesDefinitions.h
r216634 r216690 278 278 macro(MaxParseDuration, maxParseDuration, Double, double, -1, "", "") \ 279 279 macro(PasswordEchoDuration, passwordEchoDuration, Double, double, 2, "", "") \ 280 macro(ResourceLoadStatisticsTimeToLiveUserInteraction, resourceLoadStatisticsTimeToLiveUserInteraction, Double, double, 2592000, "", "") \ 281 macro(ResourceLoadStatisticsTimeToLiveCookiePartitionFree, resourceLoadStatisticsTimeToLiveCookiePartitionFree, Double, double, 86400, "", "") \ 282 macro(ResourceLoadStatisticsReducedTimestampResolution, resourceLoadStatisticsReducedTimestampResolution, Double, double, 3600, "", "") \ 280 283 \ 281 284 -
trunk/Source/WebKit2/UIProcess/WebResourceLoadStatisticsManager.h
r216171 r216690 58 58 static void clearInMemoryAndPersistentStoreModifiedSinceHours(unsigned); 59 59 static void resetToConsistentState(); 60 #if PLATFORM(COCOA) 61 static void registerUserDefaultsIfNeeded(); 62 #endif 60 63 61 64 private: -
trunk/Source/WebKit2/UIProcess/WebResourceLoadStatisticsStore.cpp
r216265 r216690 30 30 #include "WebProcessPool.h" 31 31 #include "WebProcessProxy.h" 32 #include "WebResourceLoadStatisticsManager.h" 32 33 #include "WebResourceLoadStatisticsStoreMessages.h" 33 34 #include "WebsiteDataFetchOption.h" … … 183 184 { 184 185 registerSharedResourceLoadObserver(); 186 #if PLATFORM(COCOA) 187 WebResourceLoadStatisticsManager::registerUserDefaultsIfNeeded(); 188 #endif 185 189 m_resourceLoadStatisticsStore->setShouldPartitionCookiesCallback([this, shouldPartitionCookiesForDomainsHandler = WTFMove(shouldPartitionCookiesForDomainsHandler)] (const Vector<String>& domainsToRemove, const Vector<String>& domainsToAdd, bool clearFirst) { 186 190 shouldPartitionCookiesForDomainsHandler(domainsToRemove, domainsToAdd, clearFirst); -
trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj
r216497 r216690 1186 1186 659C551E130006410025C0C2 /* InjectedBundlePageResourceLoadClient.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 6546A82913000164000CEB1C /* InjectedBundlePageResourceLoadClient.cpp */; }; 1187 1187 65B86F1E12F11DE300B7DD8A /* WKBundleInspector.h in Headers */ = {isa = PBXBuildFile; fileRef = 65B86F1812F11D7B00B7DD8A /* WKBundleInspector.h */; settings = {ATTRIBUTES = (Private, ); }; }; 1188 6BBBAD381EC3E57800AD0A2A /* WebResourceLoadStatisticsManagerCocoa.mm in Sources */ = {isa = PBXBuildFile; fileRef = 6BBBAD371EC3E56300AD0A2A /* WebResourceLoadStatisticsManagerCocoa.mm */; }; 1188 1189 6BE9699C1E43B3FF008B7483 /* WKResourceLoadStatisticsManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 6BE9699B1E43B3FF008B7483 /* WKResourceLoadStatisticsManager.h */; settings = {ATTRIBUTES = (Private, ); }; }; 1189 1190 6BE9699E1E43B41D008B7483 /* WKResourceLoadStatisticsManager.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 6BE9699D1E43B41D008B7483 /* WKResourceLoadStatisticsManager.cpp */; }; … … 3463 3464 65B86F1712F11D7B00B7DD8A /* WKBundleInspector.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WKBundleInspector.cpp; sourceTree = "<group>"; }; 3464 3465 65B86F1812F11D7B00B7DD8A /* WKBundleInspector.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKBundleInspector.h; sourceTree = "<group>"; }; 3466 6BBBAD371EC3E56300AD0A2A /* WebResourceLoadStatisticsManagerCocoa.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WebResourceLoadStatisticsManagerCocoa.mm; sourceTree = "<group>"; }; 3465 3467 6BE9699B1E43B3FF008B7483 /* WKResourceLoadStatisticsManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKResourceLoadStatisticsManager.h; sourceTree = "<group>"; }; 3466 3468 6BE9699D1E43B41D008B7483 /* WKResourceLoadStatisticsManager.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WKResourceLoadStatisticsManager.cpp; sourceTree = "<group>"; }; … … 5194 5196 7CE4D2151A49148400C7F152 /* WebProcessPoolCocoa.mm */, 5195 5197 1A04F6171A4A3A7A00A21B6E /* WebProcessProxyCocoa.mm */, 5198 6BBBAD371EC3E56300AD0A2A /* WebResourceLoadStatisticsManagerCocoa.mm */, 5196 5199 7AAD175E1EA6AF37003B0894 /* WebResourceLoadStatisticsStoreCocoa.mm */, 5197 5200 51D124311E6DE521002B2820 /* WebURLSchemeHandlerCocoa.h */, … … 10304 10307 BC7B6207129A0A6700D174A4 /* WebPageGroup.cpp in Sources */, 10305 10308 BC7B625312A43C9600D174A4 /* WebPageGroupData.cpp in Sources */, 10309 6BBBAD381EC3E57800AD0A2A /* WebResourceLoadStatisticsManagerCocoa.mm in Sources */, 10306 10310 BC7B621612A4219A00D174A4 /* WebPageGroupProxy.cpp in Sources */, 10307 10311 2D9EA3111A96D9EB002D2807 /* WebPageInjectedBundleClient.cpp in Sources */,
Note: See TracChangeset
for help on using the changeset viewer.