| 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 EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ | 5 #ifndef EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ |
| 6 #define EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ | 6 #define EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 | 141 |
| 142 // Creates a new ExtensionHostDelegate instance. | 142 // Creates a new ExtensionHostDelegate instance. |
| 143 virtual scoped_ptr<ExtensionHostDelegate> CreateExtensionHostDelegate() = 0; | 143 virtual scoped_ptr<ExtensionHostDelegate> CreateExtensionHostDelegate() = 0; |
| 144 | 144 |
| 145 // Returns true if the client version has updated since the last run. Called | 145 // Returns true if the client version has updated since the last run. Called |
| 146 // once each time the extensions system is loaded per browser_context. The | 146 // once each time the extensions system is loaded per browser_context. The |
| 147 // implementation may wish to use the BrowserContext to record the current | 147 // implementation may wish to use the BrowserContext to record the current |
| 148 // version for later comparison. | 148 // version for later comparison. |
| 149 virtual bool DidVersionUpdate(content::BrowserContext* context) = 0; | 149 virtual bool DidVersionUpdate(content::BrowserContext* context) = 0; |
| 150 | 150 |
| 151 // Permits an external protocol handler to be launched. See |
| 152 // ExternalProtocolHandler::PermitLaunchUrl() in Chrome. |
| 153 virtual void PermitExternalProtocolHandler() = 0; |
| 154 |
| 151 // Creates a new AppSorting instance. | 155 // Creates a new AppSorting instance. |
| 152 virtual scoped_ptr<AppSorting> CreateAppSorting() = 0; | 156 virtual scoped_ptr<AppSorting> CreateAppSorting() = 0; |
| 153 | 157 |
| 154 // Return true if the system is run in forced app mode. | 158 // Return true if the system is run in forced app mode. |
| 155 virtual bool IsRunningInForcedAppMode() = 0; | 159 virtual bool IsRunningInForcedAppMode() = 0; |
| 156 | 160 |
| 157 // Returns the embedder's ApiActivityMonitor for |context|. Returns NULL if | 161 // Returns the embedder's ApiActivityMonitor for |context|. Returns NULL if |
| 158 // the embedder does not monitor extension API activity. | 162 // the embedder does not monitor extension API activity. |
| 159 virtual ApiActivityMonitor* GetApiActivityMonitor( | 163 virtual ApiActivityMonitor* GetApiActivityMonitor( |
| 160 content::BrowserContext* context) = 0; | 164 content::BrowserContext* context) = 0; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 176 // Returns the single instance of |this|. | 180 // Returns the single instance of |this|. |
| 177 static ExtensionsBrowserClient* Get(); | 181 static ExtensionsBrowserClient* Get(); |
| 178 | 182 |
| 179 // Initialize the single instance. | 183 // Initialize the single instance. |
| 180 static void Set(ExtensionsBrowserClient* client); | 184 static void Set(ExtensionsBrowserClient* client); |
| 181 }; | 185 }; |
| 182 | 186 |
| 183 } // namespace extensions | 187 } // namespace extensions |
| 184 | 188 |
| 185 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ | 189 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ |
| OLD | NEW |