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" | |
| 9 | |
| 10 namespace extensions { | |
| 11 | |
| 12 class ComponentExtensionResourceManager { | |
| 13 public: | |
| 14 // Sets/gets the singleton instance of ComponentExtensionResourceManager. | |
| 15 static void Set(ComponentExtensionResourceManager* manager); | |
|
James Cook
2014/06/17 22:01:04
Rather than using a singleton I would prefer that
Jun Mukai
2014/06/17 23:53:02
Sounds reasonable. Rather than returning an instan
| |
| 16 static ComponentExtensionResourceManager* Get(); | |
| 17 static bool HasInstance(); | |
| 18 | |
| 19 virtual ~ComponentExtensionResourceManager() {} | |
| 20 | |
| 21 virtual bool IsComponentExtensionResource( | |
| 22 const base::FilePath& extension_path, | |
| 23 const base::FilePath& resource_path, | |
| 24 int* resource_id) = 0; | |
| 25 }; | |
| 26 | |
| 27 } // namespace extensions | |
| 28 | |
| 29 #endif // EXTENSIONS_BROWSER_COMPONENT_EXTENSION_RESOURCE_MANAGER_H_ | |
| OLD | NEW |