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

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

Issue 7741037: Add WebstoreInlineInstaller (downloads store data, shows the install UI, and starts the install). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Put webstore response in the right directory. Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_install_dialog.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_install_dialog.h
diff --git a/chrome/browser/extensions/extension_install_dialog.h b/chrome/browser/extensions/extension_install_dialog.h
index 2c0dcc13a3ce5026981884061b49b72ea1c4d3f4..4cc67fc5270ab2c4f1226fe518088e978ab70ace 100644
--- a/chrome/browser/extensions/extension_install_dialog.h
+++ b/chrome/browser/extensions/extension_install_dialog.h
@@ -8,6 +8,7 @@
#include <vector>
+#include "base/memory/ref_counted.h"
#include "base/string16.h"
#include "chrome/browser/extensions/extension_install_ui.h"
@@ -15,6 +16,10 @@ class Extension;
class Profile;
class SkBitmap;
+namespace base {
+class DictionaryValue;
+}
+
// The implementations of this function are platform-specific.
void ShowExtensionInstallDialog(Profile* profile,
ExtensionInstallUI::Delegate* delegate,
@@ -23,4 +28,25 @@ void ShowExtensionInstallDialog(Profile* profile,
const std::vector<string16>& permissions,
ExtensionInstallUI::PromptType type);
+// Wrapper around ShowExtensionInstallDialog that shows the install dialog for
+// a given manifest (that corresponds to an extension about to be installed with
+// ID |id|). If the name in the manifest is a localized placeholder, it may be
+// overidden with |localized_name| (which may be empty). The Extension instance
+// that's parsed is returned via |dummy_extension|.
+void ShowExtensionInstallDialogForManifest(
+ Profile *profile,
+ ExtensionInstallUI::Delegate* delegate,
+ const base::DictionaryValue* manifest,
+ const std::string& id,
+ const std::string& localized_name,
+ SkBitmap* icon,
+ ExtensionInstallUI::PromptType type,
+ scoped_refptr<Extension>* dummy_extension);
+
+// For use only in tests - sets a flag that makes invocations of
+// ShowExtensionInstallDialogForManifest skip putting up a real dialog, and
+// instead act as if the dialog choice was to proceed or abort.
+void SetExtensionInstallDialogForManifestAutoConfirmForTests(
+ bool should_proceed);
+
#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_DIALOG_H_
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_install_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698