diff options
Diffstat (limited to 'chrome/browser/custom_handlers/protocol_handler_registry.h')
-rw-r--r-- | chrome/browser/custom_handlers/protocol_handler_registry.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/custom_handlers/protocol_handler_registry.h b/chrome/browser/custom_handlers/protocol_handler_registry.h index 508a44c..de90791 100644 --- a/chrome/browser/custom_handlers/protocol_handler_registry.h +++ b/chrome/browser/custom_handlers/protocol_handler_registry.h @@ -191,6 +191,10 @@ class ProtocolHandlerRegistry bool enabled() const { return enabled_; } + // Add a predefined protocol handler. This has to be called before the first + // load command was issued, otherwise the command will be ignored. + void AddDefaultHandler(const ProtocolHandler& handler); + private: friend class base::DeleteHelper<ProtocolHandlerRegistry>; friend struct content::BrowserThread::DeleteOnThread< @@ -280,6 +284,10 @@ class ProtocolHandlerRegistry // Whether or not we are loading. bool is_loading_; + // When the table gets loaded this flag will be set and any further calls to + // AddDefaultHandler will be rejected. + bool is_loaded_; + DefaultClientObserverList default_client_observers_; // Copy of default_handlers_ that is only accessed on the IO thread. |