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

Side by Side Diff: chrome/browser/extensions/chrome_extensions_browser_client.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: fix 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_
6 #define CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ 6 #define CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_
7 7
8 #include <map>
9
8 #include "base/basictypes.h" 10 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
10 #include "base/lazy_instance.h" 12 #include "base/lazy_instance.h"
11 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
12 #include "chrome/browser/extensions/chrome_notification_observer.h" 14 #include "chrome/browser/extensions/chrome_notification_observer.h"
13 #include "extensions/browser/extensions_browser_client.h" 15 #include "extensions/browser/extensions_browser_client.h"
14 16
15 namespace base { 17 namespace base {
16 class CommandLine; 18 class CommandLine;
17 } 19 }
18 20
19 namespace content { 21 namespace content {
20 class BrowserContext; 22 class BrowserContext;
21 } 23 }
22 24
23 namespace extensions { 25 namespace extensions {
24 26
27 class ChromeComponentExtensionResourceManager;
25 class ChromeExtensionsAPIClient; 28 class ChromeExtensionsAPIClient;
26 class ContentSettingsPrefsObserver; 29 class ContentSettingsPrefsObserver;
27 30
28 // Implementation of extensions::BrowserClient for Chrome, which includes 31 // Implementation of extensions::BrowserClient for Chrome, which includes
29 // knowledge of Profiles, BrowserContexts and incognito. 32 // knowledge of Profiles, BrowserContexts and incognito.
30 // 33 //
31 // NOTE: Methods that do not require knowledge of browser concepts should be 34 // NOTE: Methods that do not require knowledge of browser concepts should be
32 // implemented in ChromeExtensionsClient even if they are only used in the 35 // implemented in ChromeExtensionsClient even if they are only used in the
33 // browser process (see chrome/common/extensions/chrome_extensions_client.h). 36 // browser process (see chrome/common/extensions/chrome_extensions_client.h).
34 class ChromeExtensionsBrowserClient : public ExtensionsBrowserClient { 37 class ChromeExtensionsBrowserClient : public ExtensionsBrowserClient {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 virtual bool DidVersionUpdate(content::BrowserContext* context) OVERRIDE; 85 virtual bool DidVersionUpdate(content::BrowserContext* context) OVERRIDE;
83 virtual scoped_ptr<AppSorting> CreateAppSorting() OVERRIDE; 86 virtual scoped_ptr<AppSorting> CreateAppSorting() OVERRIDE;
84 virtual bool IsRunningInForcedAppMode() OVERRIDE; 87 virtual bool IsRunningInForcedAppMode() OVERRIDE;
85 virtual ApiActivityMonitor* GetApiActivityMonitor( 88 virtual ApiActivityMonitor* GetApiActivityMonitor(
86 content::BrowserContext* context) OVERRIDE; 89 content::BrowserContext* context) OVERRIDE;
87 virtual ExtensionSystemProvider* GetExtensionSystemFactory() OVERRIDE; 90 virtual ExtensionSystemProvider* GetExtensionSystemFactory() OVERRIDE;
88 virtual void RegisterExtensionFunctions( 91 virtual void RegisterExtensionFunctions(
89 ExtensionFunctionRegistry* registry) const OVERRIDE; 92 ExtensionFunctionRegistry* registry) const OVERRIDE;
90 virtual scoped_ptr<extensions::RuntimeAPIDelegate> CreateRuntimeAPIDelegate( 93 virtual scoped_ptr<extensions::RuntimeAPIDelegate> CreateRuntimeAPIDelegate(
91 content::BrowserContext* context) const OVERRIDE; 94 content::BrowserContext* context) const OVERRIDE;
95 virtual ComponentExtensionResourceManager*
96 GetComponentExtensionResourceManager() OVERRIDE;
92 97
93 private: 98 private:
94 friend struct base::DefaultLazyInstanceTraits<ChromeExtensionsBrowserClient>; 99 friend struct base::DefaultLazyInstanceTraits<ChromeExtensionsBrowserClient>;
95 100
96 // Observer for Chrome-specific notifications. 101 // Observer for Chrome-specific notifications.
97 ChromeNotificationObserver notification_observer_; 102 ChromeNotificationObserver notification_observer_;
98 103
99 #if defined(ENABLE_EXTENSIONS) 104 #if defined(ENABLE_EXTENSIONS)
100 // Client for API implementations. 105 // Client for API implementations.
101 scoped_ptr<ChromeExtensionsAPIClient> api_client_; 106 scoped_ptr<ChromeExtensionsAPIClient> api_client_;
102 #endif 107 #endif
103 108
109 // A map from a resource path to the resource ID. Used by
110 // IsComponentExtensionResource.
111 std::map<base::FilePath, int> path_to_resource_id_;
Yoyo Zhou 2014/06/19 18:16:06 This shouldn't be here anymore.
Jun Mukai 2014/06/19 18:26:10 Done.
112
113 scoped_ptr<ChromeComponentExtensionResourceManager> resource_manager_;
114
104 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsBrowserClient); 115 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsBrowserClient);
105 }; 116 };
106 117
107 } // namespace extensions 118 } // namespace extensions
108 119
109 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ 120 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698