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 "base/basictypes.h"
      9 #include "base/compiler_specific.h"
     10 #include "chrome/browser/extensions/extension_install_ui.h"
     11 
     12 class Profile;
     13 
     14 class ExtensionInstallUIDefault : public ExtensionInstallUI {
     15  public:
     16   explicit ExtensionInstallUIDefault(Profile* profile);
     17   virtual ~ExtensionInstallUIDefault();
     18 
     19   // ExtensionInstallUI:
     20   virtual void OnInstallSuccess(const extensions::Extension* extension,
     21                                 SkBitmap* icon) OVERRIDE;
     22   virtual void OnInstallFailure(
     23       const extensions::CrxInstallerError& error) OVERRIDE;
     24   virtual void SetUseAppInstalledBubble(bool use_bubble) OVERRIDE;
     25 
     26  private:
     27   // Used to undo theme installation.
     28   std::string previous_theme_id_;
     29   bool previous_using_system_theme_;
     30 
     31   // Whether to show an installed bubble on app install, or use the default
     32   // action of opening a new tab page.
     33   bool use_app_installed_bubble_;
     34 
     35   DISALLOW_IMPLICIT_CONSTRUCTORS(ExtensionInstallUIDefault);
     36 };
     37 
     38 #endif  // CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_INSTALL_UI_DEFAULT_H_
     39