| Index: Source/web/NavigatorContentUtilsClientImpl.cpp
|
| diff --git a/Source/web/NavigatorContentUtilsClientImpl.cpp b/Source/web/NavigatorContentUtilsClientImpl.cpp
|
| index d904a996bbc2828a0ea4649ca5e5054974de4eb8..b6d513d7576d3b761c1c255d92da314cc4ae66ea 100644
|
| --- a/Source/web/NavigatorContentUtilsClientImpl.cpp
|
| +++ b/Source/web/NavigatorContentUtilsClientImpl.cpp
|
| @@ -5,34 +5,34 @@
|
| #include "config.h"
|
| #include "web/NavigatorContentUtilsClientImpl.h"
|
|
|
| -#include "public/web/WebViewClient.h"
|
| -#include "web/WebViewImpl.h"
|
| +#include "public/web/WebFrameClient.h"
|
| +#include "web/WebLocalFrameImpl.h"
|
|
|
| namespace blink {
|
|
|
| -PassOwnPtr<NavigatorContentUtilsClientImpl> NavigatorContentUtilsClientImpl::create(WebViewImpl* webView)
|
| +PassOwnPtr<NavigatorContentUtilsClientImpl> NavigatorContentUtilsClientImpl::create(WebLocalFrameImpl* webFrame)
|
| {
|
| - return adoptPtr(new NavigatorContentUtilsClientImpl(webView));
|
| + return adoptPtr(new NavigatorContentUtilsClientImpl(webFrame));
|
| }
|
|
|
| -NavigatorContentUtilsClientImpl::NavigatorContentUtilsClientImpl(WebViewImpl* webView)
|
| - : m_webView(webView)
|
| +NavigatorContentUtilsClientImpl::NavigatorContentUtilsClientImpl(WebLocalFrameImpl* webFrame)
|
| + : m_webFrame(webFrame)
|
| {
|
| }
|
|
|
| void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& scheme, const KURL& url, const String& title)
|
| {
|
| - m_webView->client()->registerProtocolHandler(scheme, url, title);
|
| + m_webFrame->client()->registerProtocolHandler(scheme, url, title);
|
| }
|
|
|
| NavigatorContentUtilsClient::CustomHandlersState NavigatorContentUtilsClientImpl::isProtocolHandlerRegistered(const String& scheme, const KURL& url)
|
| {
|
| - return static_cast<NavigatorContentUtilsClient::CustomHandlersState>(m_webView->client()->isProtocolHandlerRegistered(scheme, url));
|
| + return static_cast<NavigatorContentUtilsClient::CustomHandlersState>(m_webFrame->client()->isProtocolHandlerRegistered(scheme, url));
|
| }
|
|
|
| void NavigatorContentUtilsClientImpl::unregisterProtocolHandler(const String& scheme, const KURL& url)
|
| {
|
| - m_webView->client()->unregisterProtocolHandler(scheme, url);
|
| + m_webFrame->client()->unregisterProtocolHandler(scheme, url);
|
| }
|
|
|
| } // namespace blink
|
|
|