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

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

Issue 1362043005: Add extensions code to use common updater in components/update_client/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merged latest origin/master Created 5 years, 2 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
« no previous file with comments | « extensions/browser/extension_system.h ('k') | extensions/browser/extensions_browser_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/ref_counted.h"
11 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
12 #include "extensions/browser/extension_event_histogram_value.h" 13 #include "extensions/browser/extension_event_histogram_value.h"
13 #include "extensions/browser/extension_prefs_observer.h" 14 #include "extensions/browser/extension_prefs_observer.h"
14 #include "extensions/common/view_type.h" 15 #include "extensions/common/view_type.h"
15 16
16 class ExtensionFunctionRegistry; 17 class ExtensionFunctionRegistry;
17 class PrefService; 18 class PrefService;
18 19
19 namespace base { 20 namespace base {
20 class CommandLine; 21 class CommandLine;
21 class FilePath; 22 class FilePath;
22 class ListValue; 23 class ListValue;
23 } 24 }
24 25
25 namespace content { 26 namespace content {
26 class BrowserContext; 27 class BrowserContext;
27 class RenderFrameHost; 28 class RenderFrameHost;
28 class WebContents; 29 class WebContents;
29 } 30 }
30 31
31 namespace net { 32 namespace net {
32 class NetLog; 33 class NetLog;
33 class NetworkDelegate; 34 class NetworkDelegate;
34 class URLRequest; 35 class URLRequest;
35 class URLRequestJob; 36 class URLRequestJob;
36 } 37 }
37 38
39 namespace update_client {
40 class UpdateClient;
41 }
42
38 namespace extensions { 43 namespace extensions {
39 44
40 class ApiActivityMonitor; 45 class ApiActivityMonitor;
41 class ComponentExtensionResourceManager; 46 class ComponentExtensionResourceManager;
42 class Extension; 47 class Extension;
43 class ExtensionCache; 48 class ExtensionCache;
44 class ExtensionError; 49 class ExtensionError;
45 class ExtensionHostDelegate; 50 class ExtensionHostDelegate;
46 class ExtensionPrefsObserver; 51 class ExtensionPrefsObserver;
47 class ExtensionSystem; 52 class ExtensionSystem;
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 virtual void CleanUpWebView(content::BrowserContext* browser_context, 234 virtual void CleanUpWebView(content::BrowserContext* browser_context,
230 int embedder_process_id, 235 int embedder_process_id,
231 int view_instance_id) {} 236 int view_instance_id) {}
232 237
233 // Attaches the task manager extension tag to |web_contents|, if needed based 238 // Attaches the task manager extension tag to |web_contents|, if needed based
234 // on |view_type|, so that its corresponding task shows up in the task 239 // on |view_type|, so that its corresponding task shows up in the task
235 // manager. 240 // manager.
236 virtual void AttachExtensionTaskManagerTag(content::WebContents* web_contents, 241 virtual void AttachExtensionTaskManagerTag(content::WebContents* web_contents,
237 ViewType view_type) {} 242 ViewType view_type) {}
238 243
244 // Returns a new UpdateClient.
245 virtual scoped_refptr<update_client::UpdateClient> CreateUpdateClient(
246 content::BrowserContext* context);
247
239 // Returns the single instance of |this|. 248 // Returns the single instance of |this|.
240 static ExtensionsBrowserClient* Get(); 249 static ExtensionsBrowserClient* Get();
241 250
242 // Initialize the single instance. 251 // Initialize the single instance.
243 static void Set(ExtensionsBrowserClient* client); 252 static void Set(ExtensionsBrowserClient* client);
244 }; 253 };
245 254
246 } // namespace extensions 255 } // namespace extensions
247 256
248 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ 257 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « extensions/browser/extension_system.h ('k') | extensions/browser/extensions_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698