Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(126)

Side by Side Diff: chrome/browser/extensions/extension_install_ui.h

Issue 160483: Ever closer. Extract a client interface out of CrxInstaller and (Closed)
Patch Set: nits Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
32 Profile* profile_;
33 MessageLoop* ui_loop_;
34 };
35
36 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698