OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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_EXTENSIONS_EXTENSION_INSTALLED_NOTIFICATION_H_ |
| 6 #define CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_INSTALLED_NOTIFICATION_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "chrome/browser/notifications/notification_delegate.h" |
| 11 #include "chrome/browser/profiles/profile.h" |
| 12 #include "extensions/common/extension.h" |
| 13 |
| 14 class ExtensionInstalledNotification : public NotificationDelegate { |
| 15 public: |
| 16 static void Show(const extensions::Extension* extension, Profile* profile); |
| 17 |
| 18 ExtensionInstalledNotification(const extensions::Extension* extension, |
| 19 Profile* profile); |
| 20 |
| 21 // NotificationDelegate override: |
| 22 void Click() override; |
| 23 std::string id() const override; |
| 24 |
| 25 protected: |
| 26 // This class is ref-counted. |
| 27 ~ExtensionInstalledNotification() override; |
| 28 |
| 29 private: |
| 30 const std::string extension_id_; |
| 31 Profile* const profile_; |
| 32 |
| 33 DISALLOW_COPY_AND_ASSIGN(ExtensionInstalledNotification); |
| 34 }; |
| 35 |
| 36 #endif // CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_INSTALLED_NOTIFICATION_H_ |
OLD | NEW |