[Metrics] Make MetricsStateManager take a callback param to check if UMA is enabled.
[chromium-blink-merge.git] / chrome / browser / ui / views / apps / app_info_dialog / app_info_tab.h
bloba3df03dbc690d427ca941702f3f2a9881ffd8adf
1 // Copyright 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_APPS_APP_INFO_DIALOG_APP_INFO_TAB_H_
6 #define CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_TAB_H_
8 #include "ui/gfx/native_widget_types.h"
9 #include "ui/views/view.h"
11 class AppInfoView;
12 class Profile;
14 namespace extensions {
15 class Extension;
17 namespace views {
18 class View;
21 // A tab in the App Info dialog that displays information for a particular
22 // profile and app. Tabs in the App Info dialog extend this class.
23 class AppInfoTab : public views::View {
24 public:
25 AppInfoTab(gfx::NativeWindow parent_window,
26 Profile* profile,
27 const extensions::Extension* app,
28 const base::Closure& close_callback);
30 virtual ~AppInfoTab();
32 protected:
33 gfx::NativeWindow parent_window_;
34 Profile* profile_;
35 const extensions::Extension* app_;
36 const base::Closure& close_callback_;
38 private:
39 DISALLOW_COPY_AND_ASSIGN(AppInfoTab);
42 #endif // CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_TAB_H_