| 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 ExtensionFunctionRegistry* registry) const = 0; | 170 ExtensionFunctionRegistry* registry) const = 0; |
| 171 | 171 |
| 172 // Creates a RuntimeAPIDelegate responsible for handling extensions | 172 // Creates a RuntimeAPIDelegate responsible for handling extensions |
| 173 // 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 |
| 174 // core runtime API implementation. | 174 // core runtime API implementation. |
| 175 virtual scoped_ptr<RuntimeAPIDelegate> CreateRuntimeAPIDelegate( | 175 virtual scoped_ptr<RuntimeAPIDelegate> CreateRuntimeAPIDelegate( |
| 176 content::BrowserContext* context) const = 0; | 176 content::BrowserContext* context) const = 0; |
| 177 | 177 |
| 178 // 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 |
| 179 // the manager doesn't exist. | 179 // the manager doesn't exist. |
| 180 virtual ComponentExtensionResourceManager* | 180 virtual const ComponentExtensionResourceManager* |
| 181 GetComponentExtensionResourceManager() = 0; | 181 GetComponentExtensionResourceManager() = 0; |
| 182 | 182 |
| 183 // Propagate a event to all the renderers in every browser context. The | 183 // Propagate a event to all the renderers in every browser context. The |
| 184 // implementation must be safe to call from any thread. | 184 // implementation must be safe to call from any thread. |
| 185 virtual void BroadcastEventToRenderers(const std::string& event_name, | 185 virtual void BroadcastEventToRenderers(const std::string& event_name, |
| 186 scoped_ptr<base::ListValue> args) = 0; | 186 scoped_ptr<base::ListValue> args) = 0; |
| 187 | 187 |
| 188 // Returns the embedder's net::NetLog. | 188 // Returns the embedder's net::NetLog. |
| 189 virtual net::NetLog* GetNetLog() = 0; | 189 virtual net::NetLog* GetNetLog() = 0; |
| 190 | 190 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 203 // Returns the single instance of |this|. | 203 // Returns the single instance of |this|. |
| 204 static ExtensionsBrowserClient* Get(); | 204 static ExtensionsBrowserClient* Get(); |
| 205 | 205 |
| 206 // Initialize the single instance. | 206 // Initialize the single instance. |
| 207 static void Set(ExtensionsBrowserClient* client); | 207 static void Set(ExtensionsBrowserClient* client); |
| 208 }; | 208 }; |
| 209 | 209 |
| 210 } // namespace extensions | 210 } // namespace extensions |
| 211 | 211 |
| 212 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ | 212 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ |
| OLD | NEW |