OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 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_UI_PANELS_EXTENSION_PANEL_ORIGINATOR_H_ |
| 6 #define CHROME_BROWSER_UI_PANELS_EXTENSION_PANEL_ORIGINATOR_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "chrome/browser/ui/panels/panel_originator_delegate.h" |
| 10 |
| 11 #include "base/compiler_specific.h" |
| 12 |
| 13 class Extension; |
| 14 class Profile; |
| 15 |
| 16 // An interface implemented by an object that initiates a panel, i.e. extension, |
| 17 // to provide the information for display at about panel bubble. |
| 18 class ExtensionPanelOriginator : public PanelOriginatorDelegate { |
| 19 public: |
| 20 ExtensionPanelOriginator(const Extension* extension, Profile* profile); |
| 21 virtual ~ExtensionPanelOriginator() {} |
| 22 |
| 23 // Overridden from PanelOriginatorDelegate: |
| 24 virtual std::string GetOriginatorName() const OVERRIDE; |
| 25 virtual std::string GetOriginatorDescription() const OVERRIDE; |
| 26 virtual base::Time GetOriginatorInstallTime() const OVERRIDE; |
| 27 |
| 28 private: |
| 29 const Extension* extension_; |
| 30 base::Time install_time_; |
| 31 |
| 32 DISALLOW_COPY_AND_ASSIGN(ExtensionPanelOriginator); |
| 33 }; |
| 34 |
| 35 #endif // CHROME_BROWSER_UI_PANELS_EXTENSION_PANEL_ORIGINATOR_H_ |
OLD | NEW |