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

Side by Side Diff: chrome/browser/extensions/chrome_extensions_browser_client.h

Issue 1226353004: Generate all extension schema namespaces as "api" and instead vary the generated bundle names. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 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
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> 8 #include <map>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 11 matching lines...) Expand all
22 class BrowserContext; 22 class BrowserContext;
23 } 23 }
24 24
25 namespace extensions { 25 namespace extensions {
26 26
27 class ChromeComponentExtensionResourceManager; 27 class ChromeComponentExtensionResourceManager;
28 class ChromeExtensionsAPIClient; 28 class ChromeExtensionsAPIClient;
29 class ChromeProcessManagerDelegate; 29 class ChromeProcessManagerDelegate;
30 class ContentSettingsPrefsObserver; 30 class ContentSettingsPrefsObserver;
31 31
32 // Implementation of extensions::BrowserClient for Chrome, which includes 32 // Implementation of BrowserClient for Chrome, which includes
33 // knowledge of Profiles, BrowserContexts and incognito. 33 // knowledge of Profiles, BrowserContexts and incognito.
34 // 34 //
35 // NOTE: Methods that do not require knowledge of browser concepts should be 35 // NOTE: Methods that do not require knowledge of browser concepts should be
36 // implemented in ChromeExtensionsClient even if they are only used in the 36 // implemented in ChromeExtensionsClient even if they are only used in the
37 // browser process (see chrome/common/extensions/chrome_extensions_client.h). 37 // browser process (see chrome/common/extensions/chrome_extensions_client.h).
38 class ChromeExtensionsBrowserClient : public ExtensionsBrowserClient { 38 class ChromeExtensionsBrowserClient : public ExtensionsBrowserClient {
39 public: 39 public:
40 ChromeExtensionsBrowserClient(); 40 ChromeExtensionsBrowserClient();
41 ~ChromeExtensionsBrowserClient() override; 41 ~ChromeExtensionsBrowserClient() override;
42 42
(...skipping 11 matching lines...) Expand all
54 content::BrowserContext* context) override; 54 content::BrowserContext* context) override;
55 #if defined(OS_CHROMEOS) 55 #if defined(OS_CHROMEOS)
56 std::string GetUserIdHashFromContext( 56 std::string GetUserIdHashFromContext(
57 content::BrowserContext* context) override; 57 content::BrowserContext* context) override;
58 #endif 58 #endif
59 bool IsGuestSession(content::BrowserContext* context) const override; 59 bool IsGuestSession(content::BrowserContext* context) const override;
60 bool IsExtensionIncognitoEnabled( 60 bool IsExtensionIncognitoEnabled(
61 const std::string& extension_id, 61 const std::string& extension_id,
62 content::BrowserContext* context) const override; 62 content::BrowserContext* context) const override;
63 bool CanExtensionCrossIncognito( 63 bool CanExtensionCrossIncognito(
64 const extensions::Extension* extension, 64 const Extension* extension,
65 content::BrowserContext* context) const override; 65 content::BrowserContext* context) const override;
66 net::URLRequestJob* MaybeCreateResourceBundleRequestJob( 66 net::URLRequestJob* MaybeCreateResourceBundleRequestJob(
67 net::URLRequest* request, 67 net::URLRequest* request,
68 net::NetworkDelegate* network_delegate, 68 net::NetworkDelegate* network_delegate,
69 const base::FilePath& directory_path, 69 const base::FilePath& directory_path,
70 const std::string& content_security_policy, 70 const std::string& content_security_policy,
71 bool send_cors_header) override; 71 bool send_cors_header) override;
72 bool AllowCrossRendererResourceLoad(net::URLRequest* request, 72 bool AllowCrossRendererResourceLoad(net::URLRequest* request,
73 bool is_incognito, 73 bool is_incognito,
74 const Extension* extension, 74 const Extension* extension,
75 InfoMap* extension_info_map) override; 75 InfoMap* extension_info_map) override;
76 PrefService* GetPrefServiceForContext( 76 PrefService* GetPrefServiceForContext(
77 content::BrowserContext* context) override; 77 content::BrowserContext* context) override;
78 void GetEarlyExtensionPrefsObservers( 78 void GetEarlyExtensionPrefsObservers(
79 content::BrowserContext* context, 79 content::BrowserContext* context,
80 std::vector<ExtensionPrefsObserver*>* observers) const override; 80 std::vector<ExtensionPrefsObserver*>* observers) const override;
81 ProcessManagerDelegate* GetProcessManagerDelegate() const override; 81 ProcessManagerDelegate* GetProcessManagerDelegate() const override;
82 scoped_ptr<ExtensionHostDelegate> CreateExtensionHostDelegate() override; 82 scoped_ptr<ExtensionHostDelegate> CreateExtensionHostDelegate() override;
83 bool DidVersionUpdate(content::BrowserContext* context) override; 83 bool DidVersionUpdate(content::BrowserContext* context) override;
84 void PermitExternalProtocolHandler() override; 84 void PermitExternalProtocolHandler() override;
85 scoped_ptr<AppSorting> CreateAppSorting() override; 85 scoped_ptr<AppSorting> CreateAppSorting() override;
86 bool IsRunningInForcedAppMode() override; 86 bool IsRunningInForcedAppMode() override;
87 ApiActivityMonitor* GetApiActivityMonitor( 87 ApiActivityMonitor* GetApiActivityMonitor(
88 content::BrowserContext* context) override; 88 content::BrowserContext* context) override;
89 ExtensionSystemProvider* GetExtensionSystemFactory() override; 89 ExtensionSystemProvider* GetExtensionSystemFactory() override;
90 void RegisterExtensionFunctions( 90 void RegisterExtensionFunctions(
91 ExtensionFunctionRegistry* registry) const override; 91 ExtensionFunctionRegistry* registry) const override;
92 void RegisterMojoServices(content::RenderFrameHost* render_frame_host, 92 void RegisterMojoServices(content::RenderFrameHost* render_frame_host,
93 const Extension* extension) const override; 93 const Extension* extension) const override;
94 scoped_ptr<extensions::RuntimeAPIDelegate> CreateRuntimeAPIDelegate( 94 scoped_ptr<RuntimeAPIDelegate> CreateRuntimeAPIDelegate(
95 content::BrowserContext* context) const override; 95 content::BrowserContext* context) const override;
96 const ComponentExtensionResourceManager* 96 const ComponentExtensionResourceManager*
97 GetComponentExtensionResourceManager() override; 97 GetComponentExtensionResourceManager() override;
98 void BroadcastEventToRenderers(events::HistogramValue histogram_value, 98 void BroadcastEventToRenderers(events::HistogramValue histogram_value,
99 const std::string& event_name, 99 const std::string& event_name,
100 scoped_ptr<base::ListValue> args) override; 100 scoped_ptr<base::ListValue> args) override;
101 net::NetLog* GetNetLog() override; 101 net::NetLog* GetNetLog() override;
102 ExtensionCache* GetExtensionCache() override; 102 ExtensionCache* GetExtensionCache() override;
103 bool IsBackgroundUpdateAllowed() override; 103 bool IsBackgroundUpdateAllowed() override;
104 bool IsMinBrowserVersionSupported(const std::string& min_version) override; 104 bool IsMinBrowserVersionSupported(const std::string& min_version) override;
(...skipping 18 matching lines...) Expand all
123 scoped_ptr<ChromeComponentExtensionResourceManager> resource_manager_; 123 scoped_ptr<ChromeComponentExtensionResourceManager> resource_manager_;
124 124
125 scoped_ptr<ExtensionCache> extension_cache_; 125 scoped_ptr<ExtensionCache> extension_cache_;
126 126
127 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsBrowserClient); 127 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsBrowserClient);
128 }; 128 };
129 129
130 } // namespace extensions 130 } // namespace extensions
131 131
132 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ 132 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698