| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 virtual bool IsRunningInForcedAppMode() OVERRIDE; | 85 virtual bool IsRunningInForcedAppMode() OVERRIDE; |
| 86 virtual ApiActivityMonitor* GetApiActivityMonitor( | 86 virtual ApiActivityMonitor* GetApiActivityMonitor( |
| 87 content::BrowserContext* context) OVERRIDE; | 87 content::BrowserContext* context) OVERRIDE; |
| 88 virtual ExtensionSystemProvider* GetExtensionSystemFactory() OVERRIDE; | 88 virtual ExtensionSystemProvider* GetExtensionSystemFactory() OVERRIDE; |
| 89 virtual void RegisterExtensionFunctions( | 89 virtual void RegisterExtensionFunctions( |
| 90 ExtensionFunctionRegistry* registry) const OVERRIDE; | 90 ExtensionFunctionRegistry* registry) const OVERRIDE; |
| 91 virtual scoped_ptr<extensions::RuntimeAPIDelegate> CreateRuntimeAPIDelegate( | 91 virtual scoped_ptr<extensions::RuntimeAPIDelegate> CreateRuntimeAPIDelegate( |
| 92 content::BrowserContext* context) const OVERRIDE; | 92 content::BrowserContext* context) const OVERRIDE; |
| 93 virtual ComponentExtensionResourceManager* | 93 virtual ComponentExtensionResourceManager* |
| 94 GetComponentExtensionResourceManager() OVERRIDE; | 94 GetComponentExtensionResourceManager() OVERRIDE; |
| 95 virtual net::NetLog* GetNetLog() OVERRIDE; |
| 95 | 96 |
| 96 private: | 97 private: |
| 97 friend struct base::DefaultLazyInstanceTraits<ChromeExtensionsBrowserClient>; | 98 friend struct base::DefaultLazyInstanceTraits<ChromeExtensionsBrowserClient>; |
| 98 | 99 |
| 99 // Observer for Chrome-specific notifications. | 100 // Observer for Chrome-specific notifications. |
| 100 ChromeNotificationObserver notification_observer_; | 101 ChromeNotificationObserver notification_observer_; |
| 101 | 102 |
| 102 #if defined(ENABLE_EXTENSIONS) | 103 #if defined(ENABLE_EXTENSIONS) |
| 103 // Support for ProcessManager. | 104 // Support for ProcessManager. |
| 104 scoped_ptr<ChromeProcessManagerDelegate> process_manager_delegate_; | 105 scoped_ptr<ChromeProcessManagerDelegate> process_manager_delegate_; |
| 105 | 106 |
| 106 // Client for API implementations. | 107 // Client for API implementations. |
| 107 scoped_ptr<ChromeExtensionsAPIClient> api_client_; | 108 scoped_ptr<ChromeExtensionsAPIClient> api_client_; |
| 108 #endif | 109 #endif |
| 109 | 110 |
| 110 scoped_ptr<ChromeComponentExtensionResourceManager> resource_manager_; | 111 scoped_ptr<ChromeComponentExtensionResourceManager> resource_manager_; |
| 111 | 112 |
| 112 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsBrowserClient); | 113 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsBrowserClient); |
| 113 }; | 114 }; |
| 114 | 115 |
| 115 } // namespace extensions | 116 } // namespace extensions |
| 116 | 117 |
| 117 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ | 118 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ |
| OLD | NEW |