[Metrics] Make MetricsStateManager take a callback param to check if UMA is enabled.
[chromium-blink-merge.git] / chrome / browser / ui / views / location_bar / page_info_helper.h
blobb411c2ba55a99609ccc0470dcb4d8f104184efa7
1 // Copyright (c) 2012 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_LOCATION_BAR_PAGE_INFO_HELPER_H_
6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_PAGE_INFO_HELPER_H_
8 #include "base/basictypes.h"
10 class LocationBarView;
12 namespace ui {
13 class LocatedEvent;
16 namespace views {
17 class View;
20 // This helper class is kept as a member by classes that need to show the Page
21 // Info bubble on click, to encapsulate that logic in one place.
22 class PageInfoHelper {
23 public:
24 PageInfoHelper(const views::View* owner, LocationBarView* location_bar);
26 void ProcessEvent(const ui::LocatedEvent& event);
28 LocationBarView* location_bar() const { return location_bar_; }
30 private:
31 const views::View* owner_;
32 LocationBarView* location_bar_;
34 DISALLOW_IMPLICIT_CONSTRUCTORS(PageInfoHelper);
37 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_PAGE_INFO_HELPER_H_