| 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 edfb7ab6327372f319afaec84e7d5fe26b2650a6..4df4d6a0f73e3a5caacd289559f84d99afbcae76 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 AddFixedHandler(const ProtocolHandler& handler);
|
| +
|
| private:
|
| friend class base::RefCountedThreadSafe<ProtocolHandlerRegistry>;
|
|
|
| @@ -277,6 +281,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
|
| + // AddFixedHandler will be rejected.
|
| + bool is_loaded_;
|
| +
|
| DefaultClientObserverList default_client_observers_;
|
|
|
| // Copy of default_handlers_ that is only accessed on the IO thread.
|
|
|