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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698