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 |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "extensions/browser/extension_prefs_observer.h" | 12 #include "extensions/browser/extension_prefs_observer.h" |
13 | 13 |
14 class ExtensionFunctionRegistry; | 14 class ExtensionFunctionRegistry; |
15 class PrefService; | 15 class PrefService; |
16 | 16 |
17 namespace base { | 17 namespace base { |
18 class CommandLine; | 18 class CommandLine; |
19 class FilePath; | 19 class FilePath; |
20 } | 20 } |
21 | 21 |
22 namespace content { | 22 namespace content { |
23 class BrowserContext; | 23 class BrowserContext; |
24 class WebContents; | 24 class WebContents; |
25 } | 25 } |
26 | 26 |
27 namespace net { | 27 namespace net { |
| 28 class NetLog; |
28 class NetworkDelegate; | 29 class NetworkDelegate; |
29 class URLRequest; | 30 class URLRequest; |
30 class URLRequestJob; | 31 class URLRequestJob; |
31 } | 32 } |
32 | 33 |
33 namespace extensions { | 34 namespace extensions { |
34 | 35 |
35 class ApiActivityMonitor; | 36 class ApiActivityMonitor; |
36 class AppSorting; | 37 class AppSorting; |
37 class ComponentExtensionResourceManager; | 38 class ComponentExtensionResourceManager; |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 // management-related events such as update and installation on behalf of the | 171 // management-related events such as update and installation on behalf of the |
171 // core runtime API implementation. | 172 // core runtime API implementation. |
172 virtual scoped_ptr<RuntimeAPIDelegate> CreateRuntimeAPIDelegate( | 173 virtual scoped_ptr<RuntimeAPIDelegate> CreateRuntimeAPIDelegate( |
173 content::BrowserContext* context) const = 0; | 174 content::BrowserContext* context) const = 0; |
174 | 175 |
175 // Returns the manager of resource bundles used in extensions. Returns NULL if | 176 // Returns the manager of resource bundles used in extensions. Returns NULL if |
176 // the manager doesn't exist. | 177 // the manager doesn't exist. |
177 virtual ComponentExtensionResourceManager* | 178 virtual ComponentExtensionResourceManager* |
178 GetComponentExtensionResourceManager() = 0; | 179 GetComponentExtensionResourceManager() = 0; |
179 | 180 |
| 181 // Returns the embedder's net::NetLog. |
| 182 virtual net::NetLog* GetNetLog() = 0; |
| 183 |
180 // Returns the single instance of |this|. | 184 // Returns the single instance of |this|. |
181 static ExtensionsBrowserClient* Get(); | 185 static ExtensionsBrowserClient* Get(); |
182 | 186 |
183 // Initialize the single instance. | 187 // Initialize the single instance. |
184 static void Set(ExtensionsBrowserClient* client); | 188 static void Set(ExtensionsBrowserClient* client); |
185 }; | 189 }; |
186 | 190 |
187 } // namespace extensions | 191 } // namespace extensions |
188 | 192 |
189 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ | 193 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ |
OLD | NEW |