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

Unified Diff: chrome/browser/custom_handlers/protocol_handler_registry.h

Issue 152143003: [ProtocolHandlers] Add a permission bubble client for RPH requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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
Index: chrome/browser/custom_handlers/protocol_handler_registry.h
diff --git a/chrome/browser/custom_handlers/protocol_handler_registry.h b/chrome/browser/custom_handlers/protocol_handler_registry.h
index f43183383635fb9fe3947a5e973227d70febc198..7a7369c22f476f1e09ae2087ccfe1b50df01de68 100644
--- a/chrome/browser/custom_handlers/protocol_handler_registry.h
+++ b/chrome/browser/custom_handlers/protocol_handler_registry.h
@@ -146,6 +146,11 @@ class ProtocolHandlerRegistry : public BrowserContextKeyedService {
// function returns false the user needs to be prompted for confirmation.
bool SilentlyHandleRegisterHandlerRequest(const ProtocolHandler& handler);
+ // Display the UI request for the site's permission to register a protocol
+ // handler.
+ void RequestPermission(content::WebContents* web_contents,
+ const ProtocolHandler& handler);
+
// Called when the user accepts the registration of a given protocol handler.
void OnAcceptRegisterProtocolHandler(const ProtocolHandler& handler);

Powered by Google App Engine
This is Rietveld 408576698