Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef EXTENSIONS_BROWSER_COMPONENT_EXTENSION_RESOURCE_MANAGER_H_ | |
| 6 #define EXTENSIONS_BROWSER_COMPONENT_EXTENSION_RESOURCE_MANAGER_H_ | |
| 7 | |
| 8 #include "base/files/file_path.h" | |
|
James Cook
2014/06/18 20:29:58
nit: You can forward declare base::FilePath.
Jun Mukai
2014/06/19 16:47:13
Done.
| |
| 9 | |
| 10 namespace extensions { | |
| 11 | |
| 12 // This class manages which extension resources are actually come from | |
| 13 // the resource bundle. | |
| 14 class ComponentExtensionResourceManager { | |
| 15 public: | |
| 16 virtual ~ComponentExtensionResourceManager() {} | |
| 17 | |
| 18 // Checks whether image is a component extension resource. Returns false | |
| 19 // if a given |resource| does not have a corresponding image in bundled | |
| 20 // resources. Otherwise fills |resource_id|. This doesn't check if the | |
| 21 // extension the resource is in is actually a component extension. | |
| 22 virtual bool IsComponentExtensionResource( | |
| 23 const base::FilePath& extension_path, | |
| 24 const base::FilePath& resource_path, | |
| 25 int* resource_id) = 0; | |
| 26 }; | |
| 27 | |
| 28 } // namespace extensions | |
| 29 | |
| 30 #endif // EXTENSIONS_BROWSER_COMPONENT_EXTENSION_RESOURCE_MANAGER_H_ | |
| OLD | NEW |