Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / ui / app_list / extension_uninstaller.h
blobe4a3f92fcc64ad668845f3068fac7414d221d4ad
1 // Copyright 2013 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.
5 #ifndef CHROME_BROWSER_UI_APP_LIST_EXTENSION_UNINSTALLER_H_
6 #define CHROME_BROWSER_UI_APP_LIST_EXTENSION_UNINSTALLER_H_
8 #include "chrome/browser/extensions/extension_uninstall_dialog.h"
10 class AppListControllerDelegate;
11 class Profile;
13 // ExtensionUninstaller runs the extension uninstall flow. It shows the
14 // extension uninstall dialog and wait for user to confirm or cancel the
15 // uninstall.
16 class ExtensionUninstaller : public ExtensionUninstallDialog::Delegate {
17 public:
18 ExtensionUninstaller(Profile* profile,
19 const std::string& extension_id,
20 AppListControllerDelegate* controller);
21 virtual ~ExtensionUninstaller();
23 void Run();
25 private:
26 // Overridden from ExtensionUninstallDialog::Delegate:
27 virtual void ExtensionUninstallAccepted() OVERRIDE;
28 virtual void ExtensionUninstallCanceled() OVERRIDE;
29 void CleanUp();
31 Profile* profile_;
32 std::string app_id_;
33 AppListControllerDelegate* controller_;
34 scoped_ptr<ExtensionUninstallDialog> dialog_;
36 DISALLOW_COPY_AND_ASSIGN(ExtensionUninstaller);
40 #endif // CHROME_BROWSER_UI_APP_LIST_EXTENSION_UNINSTALLER_H_