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

Unified Diff: public/web/WebViewClient.h

Issue 18179009: Introduce unregisterProtocolHandler() and isProtocolHandlerRegistered() webview API (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 years, 11 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 | « public/web/WebNavigatorContentUtilsClient.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebViewClient.h
diff --git a/public/web/WebViewClient.h b/public/web/WebViewClient.h
index 6b9fa339ba1c6ca2e4b7aebef559e03299cc6166..4a8cd89a0036bcccba5ae03f9f4511416d60f70d 100644
--- a/public/web/WebViewClient.h
+++ b/public/web/WebViewClient.h
@@ -39,6 +39,7 @@
#include "WebDragOperation.h"
#include "WebFileChooserCompletion.h"
#include "WebFileChooserParams.h"
+#include "WebNavigatorContentUtilsClient.h"
#include "WebPageVisibilityState.h"
#include "WebPopupType.h"
#include "WebTextAffinity.h"
@@ -357,6 +358,15 @@ public:
const WebString& url,
const WebString& title) { }
+ // Unregisters a given URL handler for the given protocol.
+ virtual void unregisterProtocolHandler(const WebString& scheme, const WebString& baseUrl, const WebString& url) { }
+
+ // Check if a given URL handler is registered for the given protocol.
+ virtual WebCustomHandlersState isProtocolHandlerRegistered(const WebString& scheme, const WebString& baseUrl, const WebString& url)
+ {
+ return WebCustomHandlersNew;
+ }
+
// Visibility -----------------------------------------------------------
// Returns the current visibility of the WebView.
« no previous file with comments | « public/web/WebNavigatorContentUtilsClient.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698