OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_ |
| 7 |
| 8 #include "base/file_path.h" |
| 9 #include "base/gfx/native_widget_types.h" |
| 10 #include "base/ref_counted.h" |
| 11 #include "chrome/browser/extensions/crx_installer.h" |
| 12 |
| 13 class ExtensionsService; |
| 14 class MessageLoop; |
| 15 class Profile; |
| 16 class SandboxedExtensionUnpacker; |
| 17 |
| 18 // Displays all the UI around extension installation. |
| 19 // |
| 20 // TODO(aa): This will become a view and move to browser/views/extensions in the |
| 21 // future. |
| 22 class ExtensionInstallUI : public CrxInstallerClient { |
| 23 public: |
| 24 ExtensionInstallUI(Profile* profile); |
| 25 |
| 26 private: |
| 27 // CrxInstallerClient |
| 28 virtual bool ConfirmInstall(Extension* extension); |
| 29 virtual void OnInstallSuccess(Extension* extension); |
| 30 virtual void OnInstallFailure(const std::string& error); |
| 31 virtual void OnOverinstallAttempted(Extension* extension); |
| 32 |
| 33 void ShowThemeInfoBar(Extension* extension); |
| 34 |
| 35 Profile* profile_; |
| 36 MessageLoop* ui_loop_; |
| 37 }; |
| 38 |
| 39 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_ |
OLD | NEW |