Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Unified Diff: extensions/browser/component_extension_resource_manager.h

Issue 334053003: Moves extension_icon_image and image_loader to extensions/browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: polish Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..d475f8192068289fcf7b45df931115d62c3d723f
--- /dev/null
+++ b/extensions/browser/component_extension_resource_manager.h
@@ -0,0 +1,29 @@
+// 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_
+
+#include "base/files/file_path.h"
+
+namespace extensions {
+
+class ComponentExtensionResourceManager {
+ public:
+ // Sets/gets the singleton instance of ComponentExtensionResourceManager.
+ 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
+ static ComponentExtensionResourceManager* Get();
+ static bool HasInstance();
+
+ virtual ~ComponentExtensionResourceManager() {}
+
+ 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_

Powered by Google App Engine
This is Rietveld 408576698