Changeset 251675 in webkit


Ignore:
Timestamp:
Oct 28, 2019 2:52:07 PM (5 years ago)
Author:
achristensen@apple.com
Message:

Remove unused WKWebsiteDataStore setter SPI
https://bugs.webkit.org/show_bug.cgi?id=203114

Reviewed by Anders Carlsson.

They have been replaced by _WKWebsiteDataStoreConfiguration SPI which was adopted in rdar://problem/56349165

  • UIProcess/API/Cocoa/WKWebsiteDataStore.mm:

(-[WKWebsiteDataStore _setBoundInterfaceIdentifier:]): Deleted.
(-[WKWebsiteDataStore _boundInterfaceIdentifier]): Deleted.
(-[WKWebsiteDataStore _setAllowsCellularAccess:]): Deleted.
(-[WKWebsiteDataStore _allowsCellularAccess]): Deleted.
(-[WKWebsiteDataStore _setProxyConfiguration:]): Deleted.
(-[WKWebsiteDataStore _proxyConfiguration]): Deleted.

  • UIProcess/API/Cocoa/WKWebsiteDataStorePrivate.h:
  • UIProcess/WebsiteData/WebsiteDataStore.h:

(WebKit::WebsiteDataStore::setBoundInterfaceIdentifier): Deleted.
(WebKit::WebsiteDataStore::setAllowsCellularAccess): Deleted.
(WebKit::WebsiteDataStore::setProxyConfiguration): Deleted.

Location:
trunk/Source/WebKit
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r251673 r251675  
     12019-10-28  Alex Christensen  <achristensen@webkit.org>
     2
     3        Remove unused WKWebsiteDataStore setter SPI
     4        https://bugs.webkit.org/show_bug.cgi?id=203114
     5
     6        Reviewed by Anders Carlsson.
     7
     8        They have been replaced by _WKWebsiteDataStoreConfiguration SPI which was adopted in rdar://problem/56349165
     9
     10        * UIProcess/API/Cocoa/WKWebsiteDataStore.mm:
     11        (-[WKWebsiteDataStore _setBoundInterfaceIdentifier:]): Deleted.
     12        (-[WKWebsiteDataStore _boundInterfaceIdentifier]): Deleted.
     13        (-[WKWebsiteDataStore _setAllowsCellularAccess:]): Deleted.
     14        (-[WKWebsiteDataStore _allowsCellularAccess]): Deleted.
     15        (-[WKWebsiteDataStore _setProxyConfiguration:]): Deleted.
     16        (-[WKWebsiteDataStore _proxyConfiguration]): Deleted.
     17        * UIProcess/API/Cocoa/WKWebsiteDataStorePrivate.h:
     18        * UIProcess/WebsiteData/WebsiteDataStore.h:
     19        (WebKit::WebsiteDataStore::setBoundInterfaceIdentifier): Deleted.
     20        (WebKit::WebsiteDataStore::setAllowsCellularAccess): Deleted.
     21        (WebKit::WebsiteDataStore::setProxyConfiguration): Deleted.
     22
    1232019-10-28  Brady Eidson  <beidson@apple.com>
    224
  • trunk/Source/WebKit/UIProcess/API/Cocoa/WKWebsiteDataStore.mm

    r250579 r251675  
    327327}
    328328
    329 - (void)_setBoundInterfaceIdentifier:(NSString *)identifier
    330 {
    331     _websiteDataStore->setBoundInterfaceIdentifier(identifier);
    332 }
    333 
    334 - (NSString *)_boundInterfaceIdentifier
    335 {
    336     return _websiteDataStore->boundInterfaceIdentifier();
    337 }
    338 
    339 - (void)_setAllowsCellularAccess:(BOOL)allows
    340 {
    341     _websiteDataStore->setAllowsCellularAccess(allows ? WebKit::AllowsCellularAccess::Yes : WebKit::AllowsCellularAccess::No);
    342 }
    343 
    344 - (BOOL)_allowsCellularAccess
    345 {
    346     return _websiteDataStore->allowsCellularAccess() == WebKit::AllowsCellularAccess::Yes;
    347 }
    348 
    349 - (void)_setProxyConfiguration:(NSDictionary *)configuration
    350 {
    351     _websiteDataStore->setProxyConfiguration((__bridge CFDictionaryRef)configuration);
    352 }
    353 
    354329- (NSString *)_sourceApplicationBundleIdentifier
    355330{
     
    381356{
    382357    return NO;
    383 }
    384 
    385 - (NSDictionary *)_proxyConfiguration
    386 {
    387     return (__bridge NSDictionary *)_websiteDataStore->proxyConfiguration();
    388358}
    389359
  • trunk/Source/WebKit/UIProcess/API/Cocoa/WKWebsiteDataStorePrivate.h

    r250150 r251675  
    5353@property (nonatomic, setter=_setServiceWorkerRegistrationDirectory:) NSString* _serviceWorkerRegistrationDirectory WK_API_DEPRECATED_WITH_REPLACEMENT("_WKWebsiteDataStoreConfiguration.serviceWorkerRegistrationDirectory", macos(10.13.4, WK_MAC_TBA), ios(11.3, WK_IOS_TBA));
    5454
    55 @property (nonatomic, setter=_setBoundInterfaceIdentifier:) NSString *_boundInterfaceIdentifier WK_API_DEPRECATED_WITH_REPLACEMENT("_WKWebsiteDataStoreConfiguration.boundInterfaceIdentifier", macos(10.13.4, WK_MAC_TBA), ios(11.3, WK_IOS_TBA));
    56 @property (nonatomic, setter=_setAllowsCellularAccess:) BOOL _allowsCellularAccess WK_API_DEPRECATED_WITH_REPLACEMENT("_WKWebsiteDataStoreConfiguration.allowsCellularAccess", macos(10.13.4, WK_MAC_TBA), ios(11.3, WK_IOS_TBA));
    57 @property (nonatomic, setter=_setProxyConfiguration:) NSDictionary *_proxyConfiguration WK_API_DEPRECATED_WITH_REPLACEMENT("_WKWebsiteDataStoreConfiguration.proxyConfiguration", macos(10.14, WK_MAC_TBA), ios(12.0, WK_IOS_TBA));
    5855@property (nonatomic, copy, setter=_setSourceApplicationBundleIdentifier:) NSString *_sourceApplicationBundleIdentifier WK_API_DEPRECATED_WITH_REPLACEMENT("_WKWebsiteDataStoreConfiguration.sourceApplicationBundleIdentifier", macos(10.14.4, WK_MAC_TBA), ios(12.2, WK_IOS_TBA));
    5956@property (nonatomic, copy, setter=_setSourceApplicationSecondaryIdentifier:) NSString *_sourceApplicationSecondaryIdentifier WK_API_DEPRECATED_WITH_REPLACEMENT("_WKWebsiteDataStoreConfiguration.setSourceApplicationSecondaryIdentifier", macos(10.14.4, WK_MAC_TBA), ios(12.2, WK_IOS_TBA));
  • trunk/Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.h

    r251213 r251675  
    223223    void clearPendingCookies();
    224224
    225     void setBoundInterfaceIdentifier(String&& identifier) { m_resolvedConfiguration->setBoundInterfaceIdentifier(WTFMove(identifier)); }
    226225    const String& boundInterfaceIdentifier() { return m_resolvedConfiguration->boundInterfaceIdentifier(); }
    227226
     
    234233    void networkingHasBegun() { m_networkingHasBegun = true; }
    235234   
    236     void setAllowsCellularAccess(AllowsCellularAccess allows) { m_resolvedConfiguration->setAllowsCellularAccess(allows == AllowsCellularAccess::Yes); }
    237235    AllowsCellularAccess allowsCellularAccess() { return m_resolvedConfiguration->allowsCellularAccess() ? AllowsCellularAccess::Yes : AllowsCellularAccess::No; }
    238236
    239237#if PLATFORM(COCOA)
    240     void setProxyConfiguration(CFDictionaryRef configuration) { m_resolvedConfiguration->setProxyConfiguration(configuration); }
    241238    CFDictionaryRef proxyConfiguration() { return m_resolvedConfiguration->proxyConfiguration(); }
    242239#endif
Note: See TracChangeset for help on using the changeset viewer.