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

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

Issue 2479973002: MD Settings: clarify "controlled by" logic (Closed)
Patch Set: merge Created 4 years, 1 month 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 (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 // Returns which extension (if any) is overriding the homepage in a given 16 // Returns which extension (if any) is overriding the homepage in a given
17 // |browser_context|. 17 // |browser_context|.
18 const Extension* GetExtensionOverridingHomepage( 18 const Extension* GetExtensionOverridingHomepage(
19 content::BrowserContext* browser_context); 19 content::BrowserContext* browser_context);
20 20
21 // Returns which extension (if any) is overriding the New Tab page in a given
22 // |browser_context|.
23 const Extension* GetExtensionOverridingNewTabPage(
24 content::BrowserContext* browser_context);
25
21 // Returns which extension (if any) is overriding the homepage in a given 26 // Returns which extension (if any) is overriding the homepage in a given
22 // |browser_context|. 27 // |browser_context|.
23 const Extension* GetExtensionOverridingStartupPages( 28 const Extension* GetExtensionOverridingStartupPages(
24 content::BrowserContext* browser_context); 29 content::BrowserContext* browser_context);
25 30
26 // Returns which extension (if any) is overriding the search engine in a given 31 // Returns which extension (if any) is overriding the search engine in a given
27 // |browser_context|. 32 // |browser_context|.
28 const Extension* GetExtensionOverridingSearchEngine( 33 const Extension* GetExtensionOverridingSearchEngine(
29 content::BrowserContext* browser_context); 34 content::BrowserContext* browser_context);
30 35
31 // Returns which extension (if any) is overriding the proxy in a given 36 // Returns which extension (if any) is overriding the proxy in a given
32 // |browser_context|. 37 // |browser_context|.
33 const Extension* GetExtensionOverridingProxy( 38 const Extension* GetExtensionOverridingProxy(
34 content::BrowserContext* browser_context); 39 content::BrowserContext* browser_context);
35 40
36 } // namespace extensions 41 } // namespace extensions
37 42
38 #endif // CHROME_BROWSER_EXTENSIONS_SETTINGS_API_HELPERS_H_ 43 #endif // CHROME_BROWSER_EXTENSIONS_SETTINGS_API_HELPERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698