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

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

Issue 4727001: Split the private webstore install API into two parts.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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
Index: chrome/browser/extensions/extension_webstore_private_api.h
===================================================================
--- chrome/browser/extensions/extension_webstore_private_api.h (revision 65457)
+++ chrome/browser/extensions/extension_webstore_private_api.h (working copy)
@@ -25,14 +25,29 @@
static void SetTestingBrowserSignin(BrowserSignin* signin);
};
+// TODO(asargent) - this function is deprecated. We can remove it sometime
+// after the chrome milestone 9 timeframe.
Erik does not do reviews 2010/11/09 16:32:21 why can't we just remove it? I don't think anythi
asargent_no_longer_on_chrome 2010/11/10 00:23:48 Ok, removed
class InstallFunction : public SyncExtensionFunction {
+ virtual bool RunImpl();
+ DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.install");
+};
+
+class BeginInstallFunction : public SyncExtensionFunction {
public:
+ // For use only in tests - sets a flag that can cause this function to ignore
+ // the normal requirement that it is called during a user gesture.
+ static void SetIgnoreUserGestureForTests(bool ignore);
+ protected:
+ virtual bool RunImpl();
+ DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.beginInstall");
+};
+
+class CompleteInstallFunction : public SyncExtensionFunction {
+ public:
static void SetTestingInstallBaseUrl(const char* testing_install_base_url);
Erik does not do reviews 2010/11/09 16:32:21 add comment
asargent_no_longer_on_chrome 2010/11/10 00:23:48 Done.
-
protected:
- ~InstallFunction() {}
virtual bool RunImpl();
- DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.install");
+ DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.completeInstall");
};
class GetBrowserLoginFunction : public SyncExtensionFunction {

Powered by Google App Engine
This is Rietveld 408576698