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 23 matching lines...) Expand all Loading... |
184 // Returns the single instance of |this|. | 188 // Returns the single instance of |this|. |
185 static ExtensionsBrowserClient* Get(); | 189 static ExtensionsBrowserClient* Get(); |
186 | 190 |
187 // Initialize the single instance. | 191 // Initialize the single instance. |
188 static void Set(ExtensionsBrowserClient* client); | 192 static void Set(ExtensionsBrowserClient* client); |
189 }; | 193 }; |
190 | 194 |
191 } // namespace extensions | 195 } // namespace extensions |
192 | 196 |
193 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ | 197 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ |
OLD | NEW |