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

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

Issue 1169223002: [Extensions] Clean up the handling of ExtensionHostMsg_Request (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Latest master Created 5 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
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
(...skipping 26 matching lines...) Expand all
37 37
38 class ApiActivityMonitor; 38 class ApiActivityMonitor;
39 class AppSorting; 39 class AppSorting;
40 class ComponentExtensionResourceManager; 40 class ComponentExtensionResourceManager;
41 class Extension; 41 class Extension;
42 class ExtensionCache; 42 class ExtensionCache;
43 class ExtensionHostDelegate; 43 class ExtensionHostDelegate;
44 class ExtensionPrefsObserver; 44 class ExtensionPrefsObserver;
45 class ExtensionSystem; 45 class ExtensionSystem;
46 class ExtensionSystemProvider; 46 class ExtensionSystemProvider;
47 class ExtensionWebContentsObserver;
47 class InfoMap; 48 class InfoMap;
48 class ProcessManagerDelegate; 49 class ProcessManagerDelegate;
49 class RuntimeAPIDelegate; 50 class RuntimeAPIDelegate;
50 51
51 // Interface to allow the extensions module to make browser-process-specific 52 // Interface to allow the extensions module to make browser-process-specific
52 // queries of the embedder. Should be Set() once in the browser process. 53 // queries of the embedder. Should be Set() once in the browser process.
53 // 54 //
54 // NOTE: Methods that do not require knowledge of browser concepts should be 55 // NOTE: Methods that do not require knowledge of browser concepts should be
55 // added in ExtensionsClient (extensions/common/extensions_client.h) even if 56 // added in ExtensionsClient (extensions/common/extensions_client.h) even if
56 // they are only used in the browser process. 57 // they are only used in the browser process.
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 206
206 // Indicates whether extension update checks should be allowed. 207 // Indicates whether extension update checks should be allowed.
207 virtual bool IsBackgroundUpdateAllowed() = 0; 208 virtual bool IsBackgroundUpdateAllowed() = 0;
208 209
209 // Indicates whether an extension update which specifies its minimum browser 210 // Indicates whether an extension update which specifies its minimum browser
210 // version as |min_version| can be installed by the client. Not all extensions 211 // version as |min_version| can be installed by the client. Not all extensions
211 // embedders share the same versioning model, so interpretation of the string 212 // embedders share the same versioning model, so interpretation of the string
212 // is left up to the embedder. 213 // is left up to the embedder.
213 virtual bool IsMinBrowserVersionSupported(const std::string& min_version) = 0; 214 virtual bool IsMinBrowserVersionSupported(const std::string& min_version) = 0;
214 215
216 // Returns the ExtensionWebContentsObserver for the given |web_contents|.
217 virtual ExtensionWebContentsObserver* GetExtensionWebContentsObserver(
218 content::WebContents* web_contents) = 0;
219
215 // Returns the single instance of |this|. 220 // Returns the single instance of |this|.
216 static ExtensionsBrowserClient* Get(); 221 static ExtensionsBrowserClient* Get();
217 222
218 // Initialize the single instance. 223 // Initialize the single instance.
219 static void Set(ExtensionsBrowserClient* client); 224 static void Set(ExtensionsBrowserClient* client);
220 }; 225 };
221 226
222 } // namespace extensions 227 } // namespace extensions
223 228
224 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ 229 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « extensions/browser/extension_web_contents_observer.cc ('k') | extensions/browser/guest_view/app_view/app_view_guest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698