Chromium Code Reviews| Index: extensions/browser/component_extension_resource_manager.h |
| diff --git a/extensions/browser/component_extension_resource_manager.h b/extensions/browser/component_extension_resource_manager.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..8ae19f8cb21a2500513aa62fdf9d906ad490ccc1 |
| --- /dev/null |
| +++ b/extensions/browser/component_extension_resource_manager.h |
| @@ -0,0 +1,32 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef EXTENSIONS_BROWSER_COMPONENT_EXTENSION_RESOURCE_MANAGER_H_ |
| +#define EXTENSIONS_BROWSER_COMPONENT_EXTENSION_RESOURCE_MANAGER_H_ |
| + |
| +namespace base { |
| +class FilePath; |
| +} |
| + |
| +namespace extensions { |
| + |
| +// This class manages which extension resources are actually come from |
|
Yoyo Zhou
2014/06/19 18:16:06
delete either 'are' or 'come'
Jun Mukai
2014/06/19 18:26:10
Done.
|
| +// the resource bundle. |
| +class ComponentExtensionResourceManager { |
| + public: |
| + virtual ~ComponentExtensionResourceManager() {} |
| + |
| + // Checks whether image is a component extension resource. Returns false |
| + // if a given |resource| does not have a corresponding image in bundled |
| + // resources. Otherwise fills |resource_id|. This doesn't check if the |
| + // extension the resource is in is actually a component extension. |
| + virtual bool IsComponentExtensionResource( |
| + const base::FilePath& extension_path, |
| + const base::FilePath& resource_path, |
| + int* resource_id) = 0; |
| +}; |
| + |
| +} // namespace extensions |
| + |
| +#endif // EXTENSIONS_BROWSER_COMPONENT_EXTENSION_RESOURCE_MANAGER_H_ |