Changeset 162675 in webkit


Ignore:
Timestamp:
Jan 23, 2014 6:33:02 PM (10 years ago)
Author:
andersca@apple.com
Message:

Only WKPage should know about WebPolicyClient
https://bugs.webkit.org/show_bug.cgi?id=127535

Reviewed by Andreas Kling.

  • UIProcess/API/Cocoa/WKBrowsingContextController.mm:

(setUpPagePolicyClient):
(-[WKBrowsingContextController setPolicyDelegate:]):

  • UIProcess/WebInspectorProxy.cpp:

(WebKit::WebInspectorProxy::createInspectorPage):

Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r162673 r162675  
     12014-01-23  Anders Carlsson  <andersca@apple.com>
     2
     3        Only WKPage should know about WebPolicyClient
     4        https://bugs.webkit.org/show_bug.cgi?id=127535
     5
     6        Reviewed by Andreas Kling.
     7
     8        * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
     9        (setUpPagePolicyClient):
     10        (-[WKBrowsingContextController setPolicyDelegate:]):
     11        * UIProcess/WebInspectorProxy.cpp:
     12        (WebKit::WebInspectorProxy::createInspectorPage):
     13
    1142014-01-23  Anders Carlsson  <andersca@apple.com>
    215
  • trunk/Source/WebKit2/UIProcess/API/Cocoa/WKBrowsingContextController.mm

    r162670 r162675  
    4848#import "WKNSURLExtras.h"
    4949#import "WKNSURLProtectionSpace.h"
     50#import "WKPagePolicyClientInternal.h"
    5051#import "WKProcessGroupPrivate.h"
    5152#import "WKRemoteObjectRegistryInternal.h"
     
    5859#import "WebContext.h"
    5960#import "WebPageProxy.h"
    60 #import "WebPolicyClient.h"
    6161
    6262using namespace WebCore;
     
    714714    };
    715715
    716     page.setPolicyClient(std::make_unique<WebPolicyClient>(&policyClient.base));
     716    WKPageSetPagePolicyClient(toAPI(&page), &policyClient.base);
    717717}
    718718
     
    744744        setUpPagePolicyClient(self, *_page);
    745745    else
    746         _page->setPolicyClient(nullptr);
     746        WKPageSetPagePolicyClient(toAPI(_page.get()), nullptr);
    747747}
    748748
  • trunk/Source/WebKit2/UIProcess/WebInspectorProxy.cpp

    r162639 r162675  
    3838#include "WebPageGroup.h"
    3939#include "WebPageProxy.h"
    40 #include "WebPolicyClient.h"
    4140#include "WebPreferences.h"
    4241#include "WebProcessProxy.h"
     
    451450    };
    452451
    453     inspectorPage->setPolicyClient(std::make_unique<WebPolicyClient>(&policyClient.base));
     452    WKPageSetPagePolicyClient(toAPI(inspectorPage), &policyClient.base);
    454453
    455454    String url = inspectorPageURL();
Note: See TracChangeset for help on using the changeset viewer.