OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_EXTENSIONS_THEME_INSTALLED_INFOBAR_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_THEME_INSTALLED_INFOBAR_DELEGATE_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_THEME_INSTALLED_INFOBAR_DELEGATE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_THEME_INSTALLED_INFOBAR_DELEGATE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/tab_contents/infobar_delegate.h" | 9 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" |
10 #include "chrome/common/notification_registrar.h" | 10 #include "chrome/common/notification_registrar.h" |
11 | 11 |
12 class Extension; | 12 class Extension; |
13 class SkBitmap; | 13 class SkBitmap; |
14 class TabContents; | 14 class TabContents; |
15 | 15 |
16 // When a user installs a theme, we display it immediately, but provide an | 16 // When a user installs a theme, we display it immediately, but provide an |
17 // infobar allowing them to cancel. | 17 // infobar allowing them to cancel. |
18 class ThemeInstalledInfoBarDelegate : public ConfirmInfoBarDelegate, | 18 class ThemeInstalledInfoBarDelegate : public ConfirmInfoBarDelegate, |
19 public NotificationObserver { | 19 public NotificationObserver { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 std::string previous_theme_id_; | 60 std::string previous_theme_id_; |
61 | 61 |
62 // Tab to which this info bar is associated. | 62 // Tab to which this info bar is associated. |
63 TabContents* tab_contents_; | 63 TabContents* tab_contents_; |
64 | 64 |
65 // Registers and unregisters us for notifications. | 65 // Registers and unregisters us for notifications. |
66 NotificationRegistrar registrar_; | 66 NotificationRegistrar registrar_; |
67 }; | 67 }; |
68 | 68 |
69 #endif // CHROME_BROWSER_EXTENSIONS_THEME_INSTALLED_INFOBAR_DELEGATE_H_ | 69 #endif // CHROME_BROWSER_EXTENSIONS_THEME_INSTALLED_INFOBAR_DELEGATE_H_ |
OLD | NEW |