Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2755)

Unified Diff: Source/web/NavigatorContentUtilsClientImpl.cpp

Issue 1226113002: Move protocol registration from WebViewClient to WebFrameClient, part 2/3. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/NavigatorContentUtilsClientImpl.h ('k') | Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/web/NavigatorContentUtilsClientImpl.h ('k') | Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698