| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_EXTENSION_INSTALL_UI_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_ |
| 7 | 7 |
| 8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
| 9 #include "base/gfx/native_widget_types.h" | 9 #include "base/gfx/native_widget_types.h" |
| 10 #include "base/ref_counted.h" | 10 #include "base/ref_counted.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 ExtensionInstallUI(Profile* profile); | 27 ExtensionInstallUI(Profile* profile); |
| 28 | 28 |
| 29 private: | 29 private: |
| 30 // CrxInstallerClient | 30 // CrxInstallerClient |
| 31 virtual void ConfirmInstall(CrxInstaller* installer, Extension* extension, | 31 virtual void ConfirmInstall(CrxInstaller* installer, Extension* extension, |
| 32 SkBitmap* icon); | 32 SkBitmap* icon); |
| 33 virtual void OnInstallSuccess(Extension* extension); | 33 virtual void OnInstallSuccess(Extension* extension); |
| 34 virtual void OnInstallFailure(const std::string& error); | 34 virtual void OnInstallFailure(const std::string& error); |
| 35 virtual void OnOverinstallAttempted(Extension* extension); | 35 virtual void OnOverinstallAttempted(Extension* extension); |
| 36 | 36 |
| 37 void ShowThemeInfoBar(Extension* extension); | 37 void ShowThemeInfoBar(Extension* new_theme); |
| 38 | 38 |
| 39 Profile* profile_; | 39 Profile* profile_; |
| 40 MessageLoop* ui_loop_; | 40 MessageLoop* ui_loop_; |
| 41 std::string previous_theme_id_; // Used to undo theme installation. |
| 41 }; | 42 }; |
| 42 | 43 |
| 43 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_ | 44 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_ |
| OLD | NEW |