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

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: use ConfiguratorImpl, change TestExtensionService, etc 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
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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 virtual void CleanUpWebView(content::BrowserContext* browser_context, 231 virtual void CleanUpWebView(content::BrowserContext* browser_context,
227 int embedder_process_id, 232 int embedder_process_id,
228 int view_instance_id) {} 233 int view_instance_id) {}
229 234
230 // Attaches the task manager extension tag to |web_contents|, if needed based 235 // Attaches the task manager extension tag to |web_contents|, if needed based
231 // on |view_type|, so that its corresponding task shows up in the task 236 // on |view_type|, so that its corresponding task shows up in the task
232 // manager. 237 // manager.
233 virtual void AttachExtensionTaskManagerTag(content::WebContents* web_contents, 238 virtual void AttachExtensionTaskManagerTag(content::WebContents* web_contents,
234 ViewType view_type) {} 239 ViewType view_type) {}
235 240
241 // Returns a new UpdateClient.
242 virtual scoped_refptr<update_client::UpdateClient> CreateUpdateClient(
243 content::BrowserContext* context);
244
236 // Returns the single instance of |this|. 245 // Returns the single instance of |this|.
237 static ExtensionsBrowserClient* Get(); 246 static ExtensionsBrowserClient* Get();
238 247
239 // Initialize the single instance. 248 // Initialize the single instance.
240 static void Set(ExtensionsBrowserClient* client); 249 static void Set(ExtensionsBrowserClient* client);
241 }; 250 };
242 251
243 } // namespace extensions 252 } // namespace extensions
244 253
245 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ 254 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698