[Metrics] Make MetricsStateManager take a callback param to check if UMA is enabled.
[chromium-blink-merge.git] / chrome / browser / ui / views / settings_api_bubble_helper_views.h
blobe5892f83394a17db2a86f567d96cc50ecf65f72d
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.
5 #ifndef CHROME_BROWSER_UI_VIEWS_SETTINGS_API_BUBBLE_HELPER_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_SETTINGS_API_BUBBLE_HELPER_VIEWS_H_
8 struct AutocompleteMatch;
9 class Browser;
10 class Profile;
12 namespace content {
13 class WebContents;
16 namespace extensions {
18 // Shows a bubble notifying the user that the homepage is controlled by an
19 // extension. This bubble is shown only on the first use of the Home button
20 // after the controlling extension takes effect.
21 void MaybeShowExtensionControlledHomeNotification(Browser* browser);
23 // Shows a bubble notifying the user that the search engine is controlled by an
24 // extension. This bubble is shown only on the first search after the
25 // controlling extension takes effect.
26 void MaybeShowExtensionControlledSearchNotification(
27 Profile* profile,
28 content::WebContents* web_contents,
29 const AutocompleteMatch& match);
31 // Shows a bubble notifying the user that the new tab page is controlled by an
32 // extension. This bubble is shown only the first time the new tab page is shown
33 // after the controlling extension takes effect.
34 void MaybeShowExtensionControlledNewTabPage(
35 Browser* browser,
36 content::WebContents* web_contents);
38 } // namespace extensions
40 #endif // CHROME_BROWSER_UI_VIEWS_SETTINGS_API_BUBBLE_HELPER_VIEWS_H_