| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_CUSTOM_HANDLERS_PROTOCOL_HANDLER_REGISTRY_H_ | 5 #ifndef CHROME_BROWSER_CUSTOM_HANDLERS_PROTOCOL_HANDLER_REGISTRY_H_ |
| 6 #define CHROME_BROWSER_CUSTOM_HANDLERS_PROTOCOL_HANDLER_REGISTRY_H_ | 6 #define CHROME_BROWSER_CUSTOM_HANDLERS_PROTOCOL_HANDLER_REGISTRY_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 : public ShellIntegration::DefaultWebClientObserver { | 36 : public ShellIntegration::DefaultWebClientObserver { |
| 37 public: | 37 public: |
| 38 explicit DefaultClientObserver(ProtocolHandlerRegistry* registry); | 38 explicit DefaultClientObserver(ProtocolHandlerRegistry* registry); |
| 39 virtual ~DefaultClientObserver(); | 39 virtual ~DefaultClientObserver(); |
| 40 | 40 |
| 41 // Get response from the worker regarding whether Chrome is the default | 41 // Get response from the worker regarding whether Chrome is the default |
| 42 // handler for the protocol. | 42 // handler for the protocol. |
| 43 virtual void SetDefaultWebClientUIState( | 43 virtual void SetDefaultWebClientUIState( |
| 44 ShellIntegration::DefaultWebClientUIState state) OVERRIDE; | 44 ShellIntegration::DefaultWebClientUIState state) OVERRIDE; |
| 45 | 45 |
| 46 virtual bool IsInteractiveSetDefaultPermitted() OVERRIDE; |
| 47 |
| 46 // Give the observer a handle to the worker, so we can find out the protocol | 48 // Give the observer a handle to the worker, so we can find out the protocol |
| 47 // when we're called and also tell the worker if we get deleted. | 49 // when we're called and also tell the worker if we get deleted. |
| 48 void SetWorker(ShellIntegration::DefaultProtocolClientWorker* worker); | 50 void SetWorker(ShellIntegration::DefaultProtocolClientWorker* worker); |
| 49 | 51 |
| 50 protected: | 52 protected: |
| 51 ShellIntegration::DefaultProtocolClientWorker* worker_; | 53 ShellIntegration::DefaultProtocolClientWorker* worker_; |
| 52 | 54 |
| 53 private: | 55 private: |
| 54 virtual bool IsOwnedByWorker() OVERRIDE; | 56 virtual bool IsOwnedByWorker() OVERRIDE; |
| 55 | 57 |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 | 285 |
| 284 // Copy of registry data for use on the IO thread. Changes to the registry | 286 // Copy of registry data for use on the IO thread. Changes to the registry |
| 285 // are posted to the IO thread where updates are applied to this object. | 287 // are posted to the IO thread where updates are applied to this object. |
| 286 scoped_refptr<Core> core_; | 288 scoped_refptr<Core> core_; |
| 287 | 289 |
| 288 DefaultClientObserverList default_client_observers_; | 290 DefaultClientObserverList default_client_observers_; |
| 289 | 291 |
| 290 DISALLOW_COPY_AND_ASSIGN(ProtocolHandlerRegistry); | 292 DISALLOW_COPY_AND_ASSIGN(ProtocolHandlerRegistry); |
| 291 }; | 293 }; |
| 292 #endif // CHROME_BROWSER_CUSTOM_HANDLERS_PROTOCOL_HANDLER_REGISTRY_H_ | 294 #endif // CHROME_BROWSER_CUSTOM_HANDLERS_PROTOCOL_HANDLER_REGISTRY_H_ |
| OLD | NEW |