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

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

Issue 288923004: Add an extension override bubble and warning box for proxy extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix tests Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 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_SETTINGS_API_HELPERS_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_SETTINGS_API_HELPERS_H_
6 #define CHROME_BROWSER_EXTENSIONS_SETTINGS_API_HELPERS_H_ 6 #define CHROME_BROWSER_EXTENSIONS_SETTINGS_API_HELPERS_H_
7 7
8 #include "chrome/common/extensions/manifest_handlers/settings_overrides_handler. h" 8 #include "chrome/common/extensions/manifest_handlers/settings_overrides_handler. h"
9 9
10 namespace content { 10 namespace content {
11 class BrowserContext; 11 class BrowserContext;
12 } 12 }
13 13
14 namespace extensions { 14 namespace extensions {
15 15
16 struct SettingsOverrides; 16 struct SettingsOverrides;
17 17
18 // Find which |extension| is overriding a particular |type| of setting. Returns 18 // Find which |extension| is overriding a particular |type| of setting. Returns
19 // the SettingsOverride object, or NULL if no |extension| is overriding that 19 // the SettingsOverride object, or NULL if no |extension| is overriding that
20 // particular setting. 20 // particular setting.
21 const extensions::SettingsOverrides* FindOverridingExtension( 21 const extensions::SettingsOverrides* FindOverridingExtension(
22 content::BrowserContext* browser_context, 22 content::BrowserContext* browser_context,
23 SettingsApiOverrideType type, 23 SettingsApiOverrideType type,
24 const Extension** extension); 24 const Extension** extension);
25 25
26 // Returns which extension is overriding the homepage in a given 26 // Returns which extension is overriding the homepage in a given
27 // |browser_context|. |home_page_url|, if non-NULL, will contain the home_page 27 // |browser_context| or NULL if no extension is overriding the homepage.
28 // value the extension has set. 28 // |home_page_url|, if non-NULL, will contain the home_page value the extension
29 const Extension* OverridesHomepage(content::BrowserContext* browser_context, 29 // has set.
30 GURL* home_page_url); 30 const Extension* GetExtensionOverridingHomepage(
31 content::BrowserContext* browser_context,
32 GURL* home_page_url);
31 33
32 // Returns which extension is overriding the homepage in a given 34 // Returns which extension is overriding the homepage in a given
33 // |browser_context|. |startup_pages|, if non-NULL, will contain the vector of 35 // |browser_context| or NULL if no extension is overriding the startup pages.
34 // startup page URLs the extension has set. 36 // |startup_pages|, if non-NULL, will contain the vector of startup page URLs
35 const Extension* OverridesStartupPages(content::BrowserContext* browser_context, 37 // the extension has set.
36 std::vector<GURL>* startup_pages); 38 const Extension* GetExtensionOverridingStartupPages(
39 content::BrowserContext* browser_context,
40 std::vector<GURL>* startup_pages);
37 41
38 // Returns which extension is overriding the search engine in a given 42 // Returns which extension is overriding the search engine in a given
39 // |browser_context|. |search_provider|, if non-NULL, will contain the search 43 // |browser_context| or NULL if no extension is overriding the search engine.
40 // provider the extension has set. 44 // |search_provider|, if non-NULL, will contain the search provider the
41 const Extension* OverridesSearchEngine( 45 // extension has set.
46 const Extension* GetExtensionOverridingSearchEngine(
42 content::BrowserContext* browser_context, 47 content::BrowserContext* browser_context,
43 api::manifest_types::ChromeSettingsOverrides::Search_provider* 48 api::manifest_types::ChromeSettingsOverrides::Search_provider*
44 search_provider); 49 search_provider);
45 50
51 // Returns which extension is overriding the proxy in a given |browser_context|
52 // or NULL if no extension is overriding the proxy.
53 const Extension* GetExtensionOverridingProxy(
54 content::BrowserContext* browser_context);
55
46 } // namespace extensions 56 } // namespace extensions
47 57
48 #endif // CHROME_BROWSER_EXTENSIONS_SETTINGS_API_HELPERS_H_ 58 #endif // CHROME_BROWSER_EXTENSIONS_SETTINGS_API_HELPERS_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/settings_api_bubble_controller.cc ('k') | chrome/browser/extensions/settings_api_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698