Changeset 225694 in webkit
- Timestamp:
- Dec 8, 2017 12:32:20 PM (6 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r225692 r225694 1 2017-12-08 Alex Christensen <achristensen@webkit.org> 2 3 Modernize APIWebsiteDataStore.h and WebProcessPool.h 4 https://bugs.webkit.org/show_bug.cgi?id=180588 5 6 Reviewed by Chris Dumez. 7 8 pragma once, Ref instead of RefPtr, initializer list in header instead of literals in constructor. 9 10 * UIProcess/API/APIWebsiteDataStore.h: 11 * UIProcess/WebProcessPool.cpp: 12 (WebKit::WebProcessPool::WebProcessPool): 13 * UIProcess/WebProcessPool.h: 14 1 15 2017-12-08 Yusuke Suzuki <utatane.tea@gmail.com> 2 16 -
trunk/Source/WebKit/UIProcess/API/APIWebsiteDataStore.h
r225490 r225694 24 24 */ 25 25 26 #ifndef APIWebsiteDataStore_h 27 #define APIWebsiteDataStore_h 26 #pragma once 28 27 29 28 #include "APIHTTPCookieStore.h" … … 50 49 void setResourceLoadStatisticsEnabled(bool); 51 50 52 WebKit::WebsiteDataStore& websiteDataStore() { return *m_websiteDataStore; }51 WebKit::WebsiteDataStore& websiteDataStore() { return m_websiteDataStore.get(); } 53 52 HTTPCookieStore& httpCookieStore(); 54 53 … … 78 77 static String websiteDataDirectoryFileSystemRepresentation(const String& directoryName); 79 78 80 Ref Ptr<WebKit::WebsiteDataStore> m_websiteDataStore;79 Ref<WebKit::WebsiteDataStore> m_websiteDataStore; 81 80 RefPtr<HTTPCookieStore> m_apiHTTPCookieStore; 82 81 }; 83 82 84 83 } 85 86 #endif // APIWebsiteDataStore_h -
trunk/Source/WebKit/UIProcess/WebProcessPool.cpp
r225622 r225694 217 217 WebProcessPool::WebProcessPool(API::ProcessPoolConfiguration& configuration) 218 218 : m_configuration(configuration.copy()) 219 , m_haveInitialEmptyProcess(false)220 , m_processWithPageCache(0)221 219 , m_defaultPageGroup(WebPageGroup::createNonNull()) 222 220 , m_injectedBundleClient(std::make_unique<API::InjectedBundleClient>()) … … 226 224 , m_customProtocolManagerClient(std::make_unique<API::CustomProtocolManagerClient>()) 227 225 , m_visitedLinkStore(VisitedLinkStore::create()) 228 , m_visitedLinksPopulated(false)229 , m_plugInAutoStartProvider(this)230 , m_alwaysUsesComplexTextCodePath(false)231 , m_shouldUseFontSmoothing(true)232 , m_memorySamplerEnabled(false)233 , m_memorySamplerInterval(1400.0)234 226 #if PLATFORM(MAC) 235 227 , m_highPerformanceGraphicsUsageSampler(std::make_unique<HighPerformanceGraphicsUsageSampler>(*this)) 236 228 , m_perActivityStateCPUUsageSampler(std::make_unique<PerActivityStateCPUUsageSampler>(*this)) 237 229 #endif 238 , m_shouldUseTestingNetworkSession(false)239 , m_processTerminationEnabled(true)240 , m_canHandleHTTPSServerTrustEvaluation(true)241 , m_didNetworkProcessCrash(false)242 , m_memoryCacheDisabled(false)243 230 , m_alwaysRunsAtBackgroundPriority(m_configuration->alwaysRunsAtBackgroundPriority()) 244 231 , m_shouldTakeUIBackgroundAssertion(m_configuration->shouldTakeUIBackgroundAssertion()) -
trunk/Source/WebKit/UIProcess/WebProcessPool.h
r225622 r225694 488 488 489 489 Vector<RefPtr<WebProcessProxy>> m_processes; 490 bool m_haveInitialEmptyProcess ;491 492 WebProcessProxy* m_processWithPageCache ;490 bool m_haveInitialEmptyProcess { false }; 491 492 WebProcessProxy* m_processWithPageCache { nullptr }; 493 493 #if ENABLE(SERVICE_WORKER) 494 494 ServiceWorkerProcessProxy* m_serviceWorkerProcess { nullptr }; … … 515 515 #endif 516 516 Ref<VisitedLinkStore> m_visitedLinkStore; 517 bool m_visitedLinksPopulated ;518 519 PlugInAutoStartProvider m_plugInAutoStartProvider ;517 bool m_visitedLinksPopulated { false }; 518 519 PlugInAutoStartProvider m_plugInAutoStartProvider { this }; 520 520 521 521 HashSet<String> m_schemesToRegisterAsEmptyDocument; … … 530 530 HashSet<String> m_schemesToRegisterAsCachePartitioned; 531 531 532 bool m_alwaysUsesComplexTextCodePath ;533 bool m_shouldUseFontSmoothing ;532 bool m_alwaysUsesComplexTextCodePath { false }; 533 bool m_shouldUseFontSmoothing { true }; 534 534 535 535 Vector<String> m_fontWhitelist; … … 539 539 Vector<std::pair<String, RefPtr<API::Object>>> m_messagesToInjectedBundlePostedToEmptyContext; 540 540 541 bool m_memorySamplerEnabled ;542 double m_memorySamplerInterval ;541 bool m_memorySamplerEnabled { false }; 542 double m_memorySamplerInterval { 1400.0 }; 543 543 544 544 RefPtr<API::WebsiteDataStore> m_websiteDataStore; … … 566 566 String m_overrideCookieStorageDirectory; 567 567 568 bool m_shouldUseTestingNetworkSession ;569 570 bool m_processTerminationEnabled ;571 572 bool m_canHandleHTTPSServerTrustEvaluation ;573 bool m_didNetworkProcessCrash ;568 bool m_shouldUseTestingNetworkSession { false }; 569 570 bool m_processTerminationEnabled { true }; 571 572 bool m_canHandleHTTPSServerTrustEvaluation { true }; 573 bool m_didNetworkProcessCrash { false }; 574 574 RefPtr<NetworkProcessProxy> m_networkProcess; 575 575 RefPtr<StorageProcessProxy> m_storageProcess; … … 582 582 #endif 583 583 584 bool m_memoryCacheDisabled ;584 bool m_memoryCacheDisabled { false }; 585 585 bool m_resourceLoadStatisticsEnabled { false }; 586 586 bool m_javaScriptConfigurationFileEnabled { false };
Note: See TracChangeset
for help on using the changeset viewer.