Home | History | Annotate | Download | only in extensions
      1 // Copyright (c) 2012 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_INSTALL_UI_DEFAULT_H_
      6 #define CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_INSTALL_UI_DEFAULT_H_
      7 
      8 #include "chrome/browser/extensions/extension_install_ui.h"
      9 
     10 class InfoBarDelegate;
     11 class Profile;
     12 
     13 namespace content {
     14 class WebContents;
     15 }
     16 
     17 class ExtensionInstallUIDefault : public ExtensionInstallUI {
     18  public:
     19   explicit ExtensionInstallUIDefault(Profile* profile);
     20   virtual ~ExtensionInstallUIDefault();
     21 
     22   // ExtensionInstallUI implementation:
     23   virtual void OnInstallSuccess(const extensions::Extension* extension,
     24                                 SkBitmap* icon) OVERRIDE;
     25   virtual void OnInstallFailure(
     26       const extensions::CrxInstallerError& error) OVERRIDE;
     27   virtual void SetSkipPostInstallUI(bool skip_ui) OVERRIDE;
     28   virtual void SetUseAppInstalledBubble(bool use_bubble) OVERRIDE;
     29 
     30  private:
     31   // Whether or not to show the default UI after completing the installation.
     32   bool skip_post_install_ui_;
     33 
     34   // Used to undo theme installation.
     35   std::string previous_theme_id_;
     36   bool previous_using_native_theme_;
     37 
     38   // Whether to show an installed bubble on app install, or use the default
     39   // action of opening a new tab page.
     40   bool use_app_installed_bubble_;
     41 
     42   DISALLOW_IMPLICIT_CONSTRUCTORS(ExtensionInstallUIDefault);
     43 };
     44 
     45 #endif  // CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_INSTALL_UI_DEFAULT_H_
     46