Chromium Code Reviews| 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/files/file_path.h" | |
|
James Cook
2014/06/18 16:29:07
FilePath is already forward declared below.
Jun Mukai
2014/06/18 18:38:49
removed
| |
| 11 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 12 #include "extensions/browser/extension_prefs_observer.h" | 13 #include "extensions/browser/extension_prefs_observer.h" |
| 13 | 14 |
| 14 class ExtensionFunctionRegistry; | 15 class ExtensionFunctionRegistry; |
| 15 class PrefService; | 16 class PrefService; |
| 16 | 17 |
| 17 namespace base { | 18 namespace base { |
| 18 class CommandLine; | 19 class CommandLine; |
| 19 class FilePath; | 20 class FilePath; |
| 20 } | 21 } |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 166 // Registers extension functions not belonging to the core extensions APIs. | 167 // Registers extension functions not belonging to the core extensions APIs. |
| 167 virtual void RegisterExtensionFunctions( | 168 virtual void RegisterExtensionFunctions( |
| 168 ExtensionFunctionRegistry* registry) const = 0; | 169 ExtensionFunctionRegistry* registry) const = 0; |
| 169 | 170 |
| 170 // Creates a RuntimeAPIDelegate responsible for handling extensions | 171 // Creates a RuntimeAPIDelegate responsible for handling extensions |
| 171 // management-related events such as update and installation on behalf of the | 172 // management-related events such as update and installation on behalf of the |
| 172 // core runtime API implementation. | 173 // core runtime API implementation. |
| 173 virtual scoped_ptr<RuntimeAPIDelegate> CreateRuntimeAPIDelegate( | 174 virtual scoped_ptr<RuntimeAPIDelegate> CreateRuntimeAPIDelegate( |
| 174 content::BrowserContext* context) const = 0; | 175 content::BrowserContext* context) const = 0; |
| 175 | 176 |
| 177 // Checks whether image is a component extension resource. Returns false | |
| 178 // if a given |resource| does not have a corresponding image in bundled | |
| 179 // resources. Otherwise fills |resource_id|. This doesn't check if the | |
| 180 // extension the resource is in is actually a component extension. | |
| 181 virtual bool IsComponentExtensionResource( | |
| 182 const base::FilePath& extension_path, | |
| 183 const base::FilePath& resource_path, | |
| 184 int* resource_id) const = 0; | |
| 185 | |
| 176 // Returns the single instance of |this|. | 186 // Returns the single instance of |this|. |
| 177 static ExtensionsBrowserClient* Get(); | 187 static ExtensionsBrowserClient* Get(); |
| 178 | 188 |
| 179 // Initialize the single instance. | 189 // Initialize the single instance. |
| 180 static void Set(ExtensionsBrowserClient* client); | 190 static void Set(ExtensionsBrowserClient* client); |
| 181 }; | 191 }; |
| 182 | 192 |
| 183 } // namespace extensions | 193 } // namespace extensions |
| 184 | 194 |
| 185 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ | 195 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ |
| OLD | NEW |