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

Unified Diff: Source/web/NavigatorContentUtilsClientImpl.cpp

Issue 331223002: NavigatorContentUtilsClientImpl has own files (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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/WebViewImpl.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
new file mode 100644
index 0000000000000000000000000000000000000000..32a7d236fcf3fcdacfedbb4cedce8f2df42395af
--- /dev/null
+++ b/Source/web/NavigatorContentUtilsClientImpl.cpp
@@ -0,0 +1,41 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "config.h"
+#include "web/NavigatorContentUtilsClientImpl.h"
+
+#include "public/web/WebViewClient.h"
+#include "web/WebViewImpl.h"
+
+using namespace WebCore;
+
+namespace blink {
+
+PassOwnPtr<NavigatorContentUtilsClientImpl> NavigatorContentUtilsClientImpl::create(WebViewImpl* webView)
+{
+ return adoptPtr(new NavigatorContentUtilsClientImpl(webView));
+}
+
+NavigatorContentUtilsClientImpl::NavigatorContentUtilsClientImpl(WebViewImpl* webView)
+ : m_webView(webView)
+{
+}
+
+void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& scheme, const WebCore::KURL& baseURL, const WebCore::KURL& url, const String& title)
+{
+ m_webView->client()->registerProtocolHandler(scheme, baseURL, url, title);
+}
+
+NavigatorContentUtilsClient::CustomHandlersState NavigatorContentUtilsClientImpl::isProtocolHandlerRegistered(const String& scheme, const WebCore::KURL& baseURL, const WebCore::KURL& url)
+{
+ return static_cast<NavigatorContentUtilsClient::CustomHandlersState>(m_webView->client()->isProtocolHandlerRegistered(scheme, baseURL, url));
+}
+
+void NavigatorContentUtilsClientImpl::unregisterProtocolHandler(const String& scheme, const WebCore::KURL& baseURL, const WebCore::KURL& url)
+{
+ m_webView->client()->unregisterProtocolHandler(scheme, baseURL, url);
+}
+
+} // namespace blink
+
« no previous file with comments | « Source/web/NavigatorContentUtilsClientImpl.h ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698