Changeset 251687 in webkit


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

Unreviewed, rolling out r251675.

Broke some builds

Reverted changeset:

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

Location:
trunk/Source/WebKit
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r251686 r251687  
     12019-10-28  Alex Christensen  <achristensen@webkit.org>
     2
     3        Unreviewed, rolling out r251675.
     4
     5        Broke some builds
     6
     7        Reverted changeset:
     8
     9        "Remove unused WKWebsiteDataStore setter SPI"
     10        https://bugs.webkit.org/show_bug.cgi?id=203114
     11        https://trac.webkit.org/changeset/251675
     12
    1132019-10-28  Wenson Hsieh  <wenson_hsieh@apple.com>
    214
  • trunk/Source/WebKit/UIProcess/API/Cocoa/WKWebsiteDataStore.mm

    r251675 r251687  
    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
    329354- (NSString *)_sourceApplicationBundleIdentifier
    330355{
     
    356381{
    357382    return NO;
     383}
     384
     385- (NSDictionary *)_proxyConfiguration
     386{
     387    return (__bridge NSDictionary *)_websiteDataStore->proxyConfiguration();
    358388}
    359389
  • trunk/Source/WebKit/UIProcess/API/Cocoa/WKWebsiteDataStorePrivate.h

    r251675 r251687  
    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));
    5558@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));
    5659@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

    r251675 r251687  
    223223    void clearPendingCookies();
    224224
     225    void setBoundInterfaceIdentifier(String&& identifier) { m_resolvedConfiguration->setBoundInterfaceIdentifier(WTFMove(identifier)); }
    225226    const String& boundInterfaceIdentifier() { return m_resolvedConfiguration->boundInterfaceIdentifier(); }
    226227
     
    233234    void networkingHasBegun() { m_networkingHasBegun = true; }
    234235   
     236    void setAllowsCellularAccess(AllowsCellularAccess allows) { m_resolvedConfiguration->setAllowsCellularAccess(allows == AllowsCellularAccess::Yes); }
    235237    AllowsCellularAccess allowsCellularAccess() { return m_resolvedConfiguration->allowsCellularAccess() ? AllowsCellularAccess::Yes : AllowsCellularAccess::No; }
    236238
    237239#if PLATFORM(COCOA)
     240    void setProxyConfiguration(CFDictionaryRef configuration) { m_resolvedConfiguration->setProxyConfiguration(configuration); }
    238241    CFDictionaryRef proxyConfiguration() { return m_resolvedConfiguration->proxyConfiguration(); }
    239242#endif
Note: See TracChangeset for help on using the changeset viewer.