Changeset 250349 in webkit
- Timestamp:
- Sep 25, 2019, 10:14:14 AM (6 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r250348 r250349 1 2019-09-25 Alex Christensen <achristensen@webkit.org> 2 3 Replace _WKProcessPoolConfiguration.CTDataConnectionServiceType with _WKWebsiteDataStoreConfiguration.dataConnectionServiceType 4 https://bugs.webkit.org/show_bug.cgi?id=202174 5 6 Reviewed by Tim Horton. 7 8 _WKProcessPoolConfiguration.CTDataConnectionServiceType is used in one place and needs a replacement so we can 9 start a NetworkProcess without a WKProcessPool. Since this SPI only does something in the low-level networking code, 10 I verified that the new SPI sets the String the way the old one does, and the old one keeps working in the interim. 11 12 * NetworkProcess/NetworkSessionCreationParameters.cpp: 13 (WebKit::NetworkSessionCreationParameters::encode const): 14 (WebKit::NetworkSessionCreationParameters::decode): 15 * NetworkProcess/NetworkSessionCreationParameters.h: 16 * NetworkProcess/cocoa/NetworkSessionCocoa.mm: 17 (WebKit::NetworkSessionCocoa::NetworkSessionCocoa): 18 * UIProcess/API/Cocoa/WKWebsiteDataStore.mm: 19 (-[WKWebsiteDataStore _initWithConfiguration:]): 20 * UIProcess/API/Cocoa/_WKProcessPoolConfiguration.h: 21 * UIProcess/API/Cocoa/_WKWebsiteDataStoreConfiguration.h: 22 * UIProcess/API/Cocoa/_WKWebsiteDataStoreConfiguration.mm: 23 (-[_WKWebsiteDataStoreConfiguration dataConnectionServiceType]): 24 (-[_WKWebsiteDataStoreConfiguration setDataConnectionServiceType:]): 25 * UIProcess/WebsiteData/Cocoa/WebsiteDataStoreCocoa.mm: 26 (WebKit::WebsiteDataStore::parameters): 27 * UIProcess/WebsiteData/WebsiteDataStoreConfiguration.cpp: 28 (WebKit::WebsiteDataStoreConfiguration::copy): 29 * UIProcess/WebsiteData/WebsiteDataStoreConfiguration.h: 30 (WebKit::WebsiteDataStoreConfiguration::dataConnectionServiceType const): 31 (WebKit::WebsiteDataStoreConfiguration::setDataConnectionServiceType): 32 1 33 2019-09-25 Commit Queue <commit-queue@webkit.org> 2 34 -
trunk/Source/WebKit/NetworkProcess/NetworkSessionCreationParameters.cpp
r250144 r250349 75 75 , { } 76 76 , { } 77 , { } 77 78 }; 78 79 } … … 114 115 encoder << deviceManagementRestrictionsEnabled; 115 116 encoder << allLoadsBlockedByDeviceManagementRestrictionsForTesting; 117 encoder << dataConnectionServiceType; 116 118 } 117 119 … … 258 260 return WTF::nullopt; 259 261 262 Optional<String> dataConnectionServiceType; 263 decoder >> dataConnectionServiceType; 264 if (!dataConnectionServiceType) 265 return WTF::nullopt; 266 260 267 return {{ 261 268 *sessionID … … 292 299 , WTFMove(*networkCacheDirectory) 293 300 , WTFMove(*networkCacheDirectoryExtensionHandle) 301 , WTFMove(*dataConnectionServiceType), 294 302 }}; 295 303 } -
trunk/Source/WebKit/NetworkProcess/NetworkSessionCreationParameters.h
r250144 r250349 94 94 String networkCacheDirectory; 95 95 SandboxExtension::Handle networkCacheDirectoryExtensionHandle; 96 String dataConnectionServiceType; 96 97 }; 97 98 -
trunk/Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm
r250309 r250349 967 967 968 968 #if PLATFORM(IOS_FAMILY) 969 auto& ctDataConnectionServiceType = globalCTDataConnectionServiceType(); 969 String ctDataConnectionServiceType = parameters.dataConnectionServiceType; 970 if (ctDataConnectionServiceType.isEmpty()) 971 ctDataConnectionServiceType = globalCTDataConnectionServiceType(); 970 972 if (!ctDataConnectionServiceType.isEmpty()) 971 973 configuration._CTDataConnectionServiceType = ctDataConnectionServiceType; -
trunk/Source/WebKit/UIProcess/API/Cocoa/WKWebsiteDataStore.mm
r250169 r250349 306 306 config->setDeviceManagementRestrictionsEnabled(configuration.deviceManagementRestrictionsEnabled); 307 307 config->setAllLoadsBlockedByDeviceManagementRestrictionsForTesting(configuration.allLoadsBlockedByDeviceManagementRestrictionsForTesting); 308 config->setDataConnectionServiceType(configuration.dataConnectionServiceType); 308 309 309 310 auto sessionID = configuration.isPersistent ? PAL::SessionID::generatePersistentSessionID() : PAL::SessionID::generateEphemeralSessionID(); -
trunk/Source/WebKit/UIProcess/API/Cocoa/_WKProcessPoolConfiguration.h
r250093 r250349 58 58 @property (nonatomic) BOOL shouldCaptureAudioInUIProcess WK_API_AVAILABLE(macos(10.13), ios(11.0)); 59 59 #if TARGET_OS_IPHONE 60 @property (nonatomic, nullable, copy) NSString *CTDataConnectionServiceType WK_API_ AVAILABLE(ios(10.3));60 @property (nonatomic, nullable, copy) NSString *CTDataConnectionServiceType WK_API_DEPRECATED_WITH_REPLACEMENT("_WKWebsiteDataStoreConfiguration.dataConnectionServiceType", ios(10.3, WK_IOS_TBA)); 61 61 @property (nonatomic) BOOL alwaysRunsAtBackgroundPriority WK_API_AVAILABLE(ios(10.3)); 62 62 @property (nonatomic) BOOL shouldTakeUIBackgroundAssertion WK_API_AVAILABLE(ios(11.0)); -
trunk/Source/WebKit/UIProcess/API/Cocoa/_WKWebsiteDataStoreConfiguration.h
r250150 r250349 48 48 @property (nonatomic) BOOL allowsCellularAccess WK_API_AVAILABLE(macos(WK_MAC_TBA), ios(WK_IOS_TBA)); 49 49 @property (nonatomic, nullable, copy) NSDictionary *proxyConfiguration WK_API_AVAILABLE(macos(WK_MAC_TBA), ios(WK_IOS_TBA)); 50 @property (nonatomic, nullable, copy) NSString *dataConnectionServiceType WK_API_AVAILABLE(macos(WK_MAC_TBA), ios(WK_IOS_TBA)); 50 51 51 52 // These properties only make sense for persistent data stores, and will throw -
trunk/Source/WebKit/UIProcess/API/Cocoa/_WKWebsiteDataStoreConfiguration.mm
r250150 r250349 328 328 } 329 329 330 - (NSString *)dataConnectionServiceType 331 { 332 return _configuration->dataConnectionServiceType(); 333 } 334 335 - (void)setDataConnectionServiceType:(NSString *)type 336 { 337 _configuration->setDataConnectionServiceType(type); 338 } 339 330 340 - (void)setProxyConfiguration:(NSDictionary *)configuration 331 341 { -
trunk/Source/WebKit/UIProcess/WebsiteData/Cocoa/WebsiteDataStoreCocoa.mm
r250169 r250349 143 143 WTFMove(networkCacheDirectory), 144 144 WTFMove(networkCacheDirectoryExtensionHandle), 145 m_configuration->dataConnectionServiceType(), 145 146 }; 146 147 networkingHasBegun(); -
trunk/Source/WebKit/UIProcess/WebsiteData/WebsiteDataStoreConfiguration.cpp
r250169 r250349 65 65 copy->m_boundInterfaceIdentifier = this->m_boundInterfaceIdentifier; 66 66 copy->m_allowsCellularAccess = this->m_allowsCellularAccess; 67 copy->m_dataConnectionServiceType = this->m_dataConnectionServiceType; 67 68 #if PLATFORM(COCOA) 68 69 if (m_proxyConfiguration) -
trunk/Source/WebKit/UIProcess/WebsiteData/WebsiteDataStoreConfiguration.h
r250150 r250349 120 120 void setAllLoadsBlockedByDeviceManagementRestrictionsForTesting(bool blocked) { m_allLoadsBlockedByDeviceManagementRestrictionsForTesting = blocked; } 121 121 122 const String& dataConnectionServiceType() const { return m_dataConnectionServiceType; } 123 void setDataConnectionServiceType(String&& type) { m_dataConnectionServiceType = WTFMove(type); } 124 122 125 private: 123 126 bool m_isPersistent { false }; … … 144 147 String m_sourceApplicationSecondaryIdentifier; 145 148 String m_boundInterfaceIdentifier; 149 String m_dataConnectionServiceType; 146 150 URL m_httpProxy; 147 151 URL m_httpsProxy;
Note:
See TracChangeset
for help on using the changeset viewer.