| 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 <string> |
| 10 |
| 9 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 10 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" | 12 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" |
| 11 #include "content/public/browser/notification_observer.h" | 13 #include "content/public/browser/notification_observer.h" |
| 12 #include "content/public/browser/notification_registrar.h" | 14 #include "content/public/browser/notification_registrar.h" |
| 13 | 15 |
| 14 class Extension; | 16 class Extension; |
| 15 class ExtensionService; | 17 class ExtensionService; |
| 16 class SkBitmap; | |
| 17 class ThemeService; | 18 class ThemeService; |
| 18 | 19 |
| 19 // When a user installs a theme, we display it immediately, but provide an | 20 // When a user installs a theme, we display it immediately, but provide an |
| 20 // infobar allowing them to cancel. | 21 // infobar allowing them to cancel. |
| 21 class ThemeInstalledInfoBarDelegate : public ConfirmInfoBarDelegate, | 22 class ThemeInstalledInfoBarDelegate : public ConfirmInfoBarDelegate, |
| 22 public content::NotificationObserver { | 23 public content::NotificationObserver { |
| 23 public: | 24 public: |
| 24 ThemeInstalledInfoBarDelegate(InfoBarTabHelper* infobar_helper, | 25 ThemeInstalledInfoBarDelegate(InfoBarTabHelper* infobar_helper, |
| 25 ExtensionService* extension_service, | 26 ExtensionService* extension_service, |
| 26 ThemeService* theme_service, | 27 ThemeService* theme_service, |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 | 67 |
| 67 // Used to undo theme install. | 68 // Used to undo theme install. |
| 68 std::string previous_theme_id_; | 69 std::string previous_theme_id_; |
| 69 bool previous_using_native_theme_; | 70 bool previous_using_native_theme_; |
| 70 | 71 |
| 71 // Registers and unregisters us for notifications. | 72 // Registers and unregisters us for notifications. |
| 72 content::NotificationRegistrar registrar_; | 73 content::NotificationRegistrar registrar_; |
| 73 }; | 74 }; |
| 74 | 75 |
| 75 #endif // CHROME_BROWSER_EXTENSIONS_THEME_INSTALLED_INFOBAR_DELEGATE_H_ | 76 #endif // CHROME_BROWSER_EXTENSIONS_THEME_INSTALLED_INFOBAR_DELEGATE_H_ |
| OLD | NEW |