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

Unified Diff: public/web/WebFrameClient.h

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/WebViewImpl.cpp ('k') | public/web/WebViewClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebFrameClient.h
diff --git a/public/web/WebFrameClient.h b/public/web/WebFrameClient.h
index 328f5aafc22ebce7b0b6e7654a8a5d17d5be107b..8cd3149246537b66696b76b07c3aa15b9e69edd1 100644
--- a/public/web/WebFrameClient.h
+++ b/public/web/WebFrameClient.h
@@ -41,6 +41,7 @@
#include "WebIconURL.h"
#include "WebNavigationPolicy.h"
#include "WebNavigationType.h"
+#include "WebNavigatorContentUtilsClient.h"
#include "WebSandboxFlags.h"
#include "WebTextDirection.h"
#include "public/platform/WebCommon.h"
@@ -646,6 +647,22 @@ public:
// App Banners ---------------------------------------------------------
virtual WebAppBannerClient* appBannerClient() { return 0; }
+ // Navigator Content Utils --------------------------------------------
+
+ // Registers a new URL handler for the given protocol.
+ virtual void registerProtocolHandler(const WebString& scheme,
+ const WebURL& url,
+ const WebString& title) { }
+
+ // Unregisters a given URL handler for the given protocol.
+ virtual void unregisterProtocolHandler(const WebString& scheme, const WebURL& url) { }
+
+ // Check if a given URL handler is registered for the given protocol.
+ virtual WebCustomHandlersState isProtocolHandlerRegistered(const WebString& scheme, const WebURL& url)
+ {
+ return WebCustomHandlersNew;
+ }
+
protected:
virtual ~WebFrameClient() { }
};
« no previous file with comments | « Source/web/WebViewImpl.cpp ('k') | public/web/WebViewClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698