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

Unified Diff: chrome/browser/extensions/extension_install_ui.h

Issue 160501: Try again to land: http://codereview.chromium.org/160483 (Closed)
Patch Set: Created 11 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/extensions/crx_installer.cc ('k') | chrome/browser/extensions/extension_install_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_install_ui.h
diff --git a/chrome/browser/extensions/extension_install_ui.h b/chrome/browser/extensions/extension_install_ui.h
new file mode 100644
index 0000000000000000000000000000000000000000..1fc0379d71ea2ed55701f3a2f37da1f440969c91
--- /dev/null
+++ b/chrome/browser/extensions/extension_install_ui.h
@@ -0,0 +1,39 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_
+#define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_
+
+#include "base/file_path.h"
+#include "base/gfx/native_widget_types.h"
+#include "base/ref_counted.h"
+#include "chrome/browser/extensions/crx_installer.h"
+
+class ExtensionsService;
+class MessageLoop;
+class Profile;
+class SandboxedExtensionUnpacker;
+
+// Displays all the UI around extension installation.
+//
+// TODO(aa): This will become a view and move to browser/views/extensions in the
+// future.
+class ExtensionInstallUI : public CrxInstallerClient {
+ public:
+ ExtensionInstallUI(Profile* profile);
+
+ private:
+ // CrxInstallerClient
+ virtual bool ConfirmInstall(Extension* extension);
+ virtual void OnInstallSuccess(Extension* extension);
+ virtual void OnInstallFailure(const std::string& error);
+ virtual void OnOverinstallAttempted(Extension* extension);
+
+ void ShowThemeInfoBar(Extension* extension);
+
+ Profile* profile_;
+ MessageLoop* ui_loop_;
+};
+
+#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_
« no previous file with comments | « chrome/browser/extensions/crx_installer.cc ('k') | chrome/browser/extensions/extension_install_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698