| 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| 191 // Gets the single ExtensionCache instance shared across the browser process. | 191 // Gets the single ExtensionCache instance shared across the browser process. |
| 192 virtual ExtensionCache* GetExtensionCache() = 0; | 192 virtual ExtensionCache* GetExtensionCache() = 0; |
| 193 | 193 |
| 194 // Indicates whether extension update checks should be allowed. |
| 195 virtual bool IsBackgroundUpdateAllowed() = 0; |
| 196 |
| 197 // Indicates whether an extension update which specifies its minimum browser |
| 198 // version as |min_version| can be installed by the client. Not all extensions |
| 199 // embedders share the same versioning model, so interpretation of the string |
| 200 // is left up to the embedder. |
| 201 virtual bool IsMinBrowserVersionSupported(const std::string& min_version) = 0; |
| 202 |
| 194 // Returns the single instance of |this|. | 203 // Returns the single instance of |this|. |
| 195 static ExtensionsBrowserClient* Get(); | 204 static ExtensionsBrowserClient* Get(); |
| 196 | 205 |
| 197 // Initialize the single instance. | 206 // Initialize the single instance. |
| 198 static void Set(ExtensionsBrowserClient* client); | 207 static void Set(ExtensionsBrowserClient* client); |
| 199 }; | 208 }; |
| 200 | 209 |
| 201 } // namespace extensions | 210 } // namespace extensions |
| 202 | 211 |
| 203 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ | 212 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ |
| OLD | NEW |