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 class ListValue; | |
20 } | 21 } |
21 | 22 |
22 namespace content { | 23 namespace content { |
23 class BrowserContext; | 24 class BrowserContext; |
24 class WebContents; | 25 class WebContents; |
25 } | 26 } |
26 | 27 |
27 namespace net { | 28 namespace net { |
28 class NetworkDelegate; | 29 class NetworkDelegate; |
29 class URLRequest; | 30 class URLRequest; |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
172 // management-related events such as update and installation on behalf of the | 173 // management-related events such as update and installation on behalf of the |
173 // core runtime API implementation. | 174 // core runtime API implementation. |
174 virtual scoped_ptr<RuntimeAPIDelegate> CreateRuntimeAPIDelegate( | 175 virtual scoped_ptr<RuntimeAPIDelegate> CreateRuntimeAPIDelegate( |
175 content::BrowserContext* context) const = 0; | 176 content::BrowserContext* context) const = 0; |
176 | 177 |
177 // Returns the manager of resource bundles used in extensions. Returns NULL if | 178 // Returns the manager of resource bundles used in extensions. Returns NULL if |
178 // the manager doesn't exist. | 179 // the manager doesn't exist. |
179 virtual ComponentExtensionResourceManager* | 180 virtual ComponentExtensionResourceManager* |
180 GetComponentExtensionResourceManager() = 0; | 181 GetComponentExtensionResourceManager() = 0; |
181 | 182 |
183 // Propage a event to all the renderers. The implementation must be safe to | |
Yoyo Zhou
2014/07/15 00:39:13
typo: Propagate
I would write: "all the renderers
| |
184 // call from any thread. | |
185 virtual void BroadcastEventToRenderers(const std::string& event_name, | |
186 scoped_ptr<base::ListValue> args) = 0; | |
187 | |
182 // Returns the single instance of |this|. | 188 // Returns the single instance of |this|. |
183 static ExtensionsBrowserClient* Get(); | 189 static ExtensionsBrowserClient* Get(); |
184 | 190 |
185 // Initialize the single instance. | 191 // Initialize the single instance. |
186 static void Set(ExtensionsBrowserClient* client); | 192 static void Set(ExtensionsBrowserClient* client); |
187 }; | 193 }; |
188 | 194 |
189 } // namespace extensions | 195 } // namespace extensions |
190 | 196 |
191 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ | 197 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ |
OLD | NEW |