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
3// found in the LICENSE file.
4
5#ifndef CHROME_BROWSER_EXTENSIONS_SETTINGS_API_HELPERS_H_
6#define CHROME_BROWSER_EXTENSIONS_SETTINGS_API_HELPERS_H_
7
8#include "chrome/common/extensions/manifest_handlers/settings_overrides_handler.h"
9
10namespace content {
11class BrowserContext;
12}
13
14namespace extensions {
15
16// Returns which extension (if any) is overriding the homepage in a given
17// |browser_context|.
18const Extension* GetExtensionOverridingHomepage(
19    content::BrowserContext* browser_context);
20
21// Returns which extension (if any) is overriding the homepage in a given
22// |browser_context|.
23const Extension* GetExtensionOverridingStartupPages(
24    content::BrowserContext* browser_context);
25
26// Returns which extension (if any) is overriding the search engine in a given
27// |browser_context|.
28const Extension* GetExtensionOverridingSearchEngine(
29    content::BrowserContext* browser_context);
30
31// Returns which extension (if any) is overriding the proxy in a given
32// |browser_context|.
33const Extension* GetExtensionOverridingProxy(
34    content::BrowserContext* browser_context);
35
36}  // namespace extensions
37
38#endif  // CHROME_BROWSER_EXTENSIONS_SETTINGS_API_HELPERS_H_
39