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 a0d223535e5ec2cd54c7cfa354b02e4294f291df..7c2c38cb148317d5c737eae36863516c36b62dc2 100644 |
--- a/chrome/browser/custom_handlers/protocol_handler_registry.h |
+++ b/chrome/browser/custom_handlers/protocol_handler_registry.h |
@@ -86,6 +86,12 @@ class ProtocolHandlerRegistry |
ProtocolHandlerRegistry(Profile* profile, Delegate* delegate); |
~ProtocolHandlerRegistry(); |
+ // Called when a site tries to register as a protocol handler. If the request |
+ // can be handled silently by the registry - either to ignore the request |
+ // or to update an existing handler - the request will succeed. If this |
+ // function returns false the user needs to be prompted for confirmation. |
+ bool SilentlyHandleRegisterHandlerRequest(const ProtocolHandler& handler); |
+ |
// Called when the user accepts the registration of a given protocol handler. |
void OnAcceptRegisterProtocolHandler(const ProtocolHandler& handler); |