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

Side by Side Diff: extensions/browser/extensions_browser_client.h

Issue 1035263002: Add service registration for Mojo services defined under chrome/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync with master. Created 5 years, 8 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 EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ 5 #ifndef EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_
6 #define EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ 6 #define EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "extensions/browser/extension_prefs_observer.h" 12 #include "extensions/browser/extension_prefs_observer.h"
13 13
14 class ExtensionFunctionRegistry; 14 class ExtensionFunctionRegistry;
15 class PrefService; 15 class PrefService;
16 16
17 namespace base { 17 namespace base {
18 class CommandLine; 18 class CommandLine;
19 class FilePath; 19 class FilePath;
20 class ListValue; 20 class ListValue;
21 } 21 }
22 22
23 namespace content { 23 namespace content {
24 class BrowserContext; 24 class BrowserContext;
25 class RenderFrameHost;
25 class WebContents; 26 class WebContents;
26 } 27 }
27 28
28 namespace net { 29 namespace net {
29 class NetLog; 30 class NetLog;
30 class NetworkDelegate; 31 class NetworkDelegate;
31 class URLRequest; 32 class URLRequest;
32 class URLRequestJob; 33 class URLRequestJob;
33 } 34 }
34 35
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 content::BrowserContext* context) = 0; 170 content::BrowserContext* context) = 0;
170 171
171 // Returns the factory that provides an ExtensionSystem to be returned from 172 // Returns the factory that provides an ExtensionSystem to be returned from
172 // ExtensionSystem::Get. 173 // ExtensionSystem::Get.
173 virtual ExtensionSystemProvider* GetExtensionSystemFactory() = 0; 174 virtual ExtensionSystemProvider* GetExtensionSystemFactory() = 0;
174 175
175 // Registers extension functions not belonging to the core extensions APIs. 176 // Registers extension functions not belonging to the core extensions APIs.
176 virtual void RegisterExtensionFunctions( 177 virtual void RegisterExtensionFunctions(
177 ExtensionFunctionRegistry* registry) const = 0; 178 ExtensionFunctionRegistry* registry) const = 0;
178 179
180 // Registers Mojo services for a RenderFrame.
181 virtual void RegisterMojoServices(content::RenderFrameHost* render_frame_host,
182 const Extension* extension) const = 0;
183
179 // Creates a RuntimeAPIDelegate responsible for handling extensions 184 // Creates a RuntimeAPIDelegate responsible for handling extensions
180 // management-related events such as update and installation on behalf of the 185 // management-related events such as update and installation on behalf of the
181 // core runtime API implementation. 186 // core runtime API implementation.
182 virtual scoped_ptr<RuntimeAPIDelegate> CreateRuntimeAPIDelegate( 187 virtual scoped_ptr<RuntimeAPIDelegate> CreateRuntimeAPIDelegate(
183 content::BrowserContext* context) const = 0; 188 content::BrowserContext* context) const = 0;
184 189
185 // Returns the manager of resource bundles used in extensions. Returns NULL if 190 // Returns the manager of resource bundles used in extensions. Returns NULL if
186 // the manager doesn't exist. 191 // the manager doesn't exist.
187 virtual const ComponentExtensionResourceManager* 192 virtual const ComponentExtensionResourceManager*
188 GetComponentExtensionResourceManager() = 0; 193 GetComponentExtensionResourceManager() = 0;
(...skipping 21 matching lines...) Expand all
210 // Returns the single instance of |this|. 215 // Returns the single instance of |this|.
211 static ExtensionsBrowserClient* Get(); 216 static ExtensionsBrowserClient* Get();
212 217
213 // Initialize the single instance. 218 // Initialize the single instance.
214 static void Set(ExtensionsBrowserClient* client); 219 static void Set(ExtensionsBrowserClient* client);
215 }; 220 };
216 221
217 } // namespace extensions 222 } // namespace extensions
218 223
219 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ 224 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « extensions/browser/extension_web_contents_observer.cc ('k') | extensions/browser/mojo/service_registration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698