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

Unified Diff: chrome/browser/extensions/api/webstore_private/webstore_private_api.h

Issue 21046003: Move webstore_private API functions registrations out of ExtensionFunctionRegistry (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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 | « no previous file | chrome/browser/extensions/api/webstore_private/webstore_private_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/webstore_private/webstore_private_api.h
diff --git a/chrome/browser/extensions/api/webstore_private/webstore_private_api.h b/chrome/browser/extensions/api/webstore_private/webstore_private_api.h
index 2337bc3236ab7cd865e6a525928bd8ba3c5bb007..19320bfdeb4710b690d3a82efc642d46b7747677 100644
--- a/chrome/browser/extensions/api/webstore_private/webstore_private_api.h
+++ b/chrome/browser/extensions/api/webstore_private/webstore_private_api.h
@@ -42,13 +42,13 @@ class WebstorePrivateApi {
Profile* profile, const std::string& extension_id);
};
-class InstallBundleFunction : public AsyncExtensionFunction,
+class WebstorePrivateInstallBundleFunction : public AsyncExtensionFunction,
public extensions::BundleInstaller::Delegate {
public:
DECLARE_EXTENSION_FUNCTION("webstorePrivate.installBundle",
WEBSTOREPRIVATE_INSTALLBUNDLE)
- InstallBundleFunction();
+ WebstorePrivateInstallBundleFunction();
// BundleInstaller::Delegate:
virtual void OnBundleInstallApproved() OVERRIDE;
@@ -56,7 +56,7 @@ class InstallBundleFunction : public AsyncExtensionFunction,
virtual void OnBundleInstallCompleted() OVERRIDE;
protected:
- virtual ~InstallBundleFunction();
+ virtual ~WebstorePrivateInstallBundleFunction();
// ExtensionFunction:
virtual bool RunImpl() OVERRIDE;
@@ -69,7 +69,7 @@ class InstallBundleFunction : public AsyncExtensionFunction,
scoped_refptr<extensions::BundleInstaller> bundle_;
};
-class BeginInstallWithManifestFunction
+class WebstorePrivateBeginInstallWithManifest3Function
: public AsyncExtensionFunction,
public ExtensionInstallPrompt::Delegate,
public WebstoreInstallHelper::Delegate,
@@ -112,7 +112,7 @@ class BeginInstallWithManifestFunction
ALREADY_INSTALLED,
};
- BeginInstallWithManifestFunction();
+ WebstorePrivateBeginInstallWithManifest3Function();
// WebstoreInstallHelper::Delegate:
virtual void OnWebstoreParseSuccess(
@@ -129,7 +129,7 @@ class BeginInstallWithManifestFunction
virtual void InstallUIAbort(bool user_initiated) OVERRIDE;
protected:
- virtual ~BeginInstallWithManifestFunction();
+ virtual ~WebstorePrivateBeginInstallWithManifest3Function();
// ExtensionFunction:
virtual bool RunImpl() OVERRIDE;
@@ -167,14 +167,14 @@ class BeginInstallWithManifestFunction
scoped_ptr<SigninTracker> signin_tracker_;
};
-class CompleteInstallFunction
+class WebstorePrivateCompleteInstallFunction
: public AsyncExtensionFunction,
public WebstoreInstaller::Delegate {
public:
DECLARE_EXTENSION_FUNCTION("webstorePrivate.completeInstall",
WEBSTOREPRIVATE_COMPLETEINSTALL)
- CompleteInstallFunction();
+ WebstorePrivateCompleteInstallFunction();
// WebstoreInstaller::Delegate:
virtual void OnExtensionInstallSuccess(const std::string& id) OVERRIDE;
@@ -184,7 +184,7 @@ class CompleteInstallFunction
WebstoreInstaller::FailureReason reason) OVERRIDE;
protected:
- virtual ~CompleteInstallFunction();
+ virtual ~WebstorePrivateCompleteInstallFunction();
// ExtensionFunction:
virtual bool RunImpl() OVERRIDE;
@@ -193,66 +193,66 @@ class CompleteInstallFunction
scoped_ptr<WebstoreInstaller::Approval> approval_;
};
-class EnableAppLauncherFunction
+class WebstorePrivateEnableAppLauncherFunction
: public AsyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("webstorePrivate.enableAppLauncher",
WEBSTOREPRIVATE_ENABLEAPPLAUNCHER)
- EnableAppLauncherFunction();
+ WebstorePrivateEnableAppLauncherFunction();
protected:
- virtual ~EnableAppLauncherFunction();
+ virtual ~WebstorePrivateEnableAppLauncherFunction();
// ExtensionFunction:
virtual bool RunImpl() OVERRIDE;
};
-class GetBrowserLoginFunction : public SyncExtensionFunction {
+class WebstorePrivateGetBrowserLoginFunction : public SyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("webstorePrivate.getBrowserLogin",
WEBSTOREPRIVATE_GETBROWSERLOGIN)
protected:
- virtual ~GetBrowserLoginFunction() {}
+ virtual ~WebstorePrivateGetBrowserLoginFunction() {}
// ExtensionFunction:
virtual bool RunImpl() OVERRIDE;
};
-class GetStoreLoginFunction : public SyncExtensionFunction {
+class WebstorePrivateGetStoreLoginFunction : public SyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("webstorePrivate.getStoreLogin",
WEBSTOREPRIVATE_GETSTORELOGIN)
protected:
- virtual ~GetStoreLoginFunction() {}
+ virtual ~WebstorePrivateGetStoreLoginFunction() {}
// ExtensionFunction:
virtual bool RunImpl() OVERRIDE;
};
-class SetStoreLoginFunction : public SyncExtensionFunction {
+class WebstorePrivateSetStoreLoginFunction : public SyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("webstorePrivate.setStoreLogin",
WEBSTOREPRIVATE_SETSTORELOGIN)
protected:
- virtual ~SetStoreLoginFunction() {}
+ virtual ~WebstorePrivateSetStoreLoginFunction() {}
// ExtensionFunction:
virtual bool RunImpl() OVERRIDE;
};
-class GetWebGLStatusFunction : public AsyncExtensionFunction {
+class WebstorePrivateGetWebGLStatusFunction : public AsyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("webstorePrivate.getWebGLStatus",
WEBSTOREPRIVATE_GETWEBGLSTATUS)
- GetWebGLStatusFunction();
+ WebstorePrivateGetWebGLStatusFunction();
protected:
- virtual ~GetWebGLStatusFunction();
+ virtual ~WebstorePrivateGetWebGLStatusFunction();
void OnFeatureCheck(bool feature_allowed);
@@ -265,15 +265,16 @@ class GetWebGLStatusFunction : public AsyncExtensionFunction {
scoped_refptr<GPUFeatureChecker> feature_checker_;
};
-class GetIsLauncherEnabledFunction : public AsyncExtensionFunction {
+class WebstorePrivateGetIsLauncherEnabledFunction
+ : public AsyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("webstorePrivate.getIsLauncherEnabled",
WEBSTOREPRIVATE_GETISLAUNCHERENABLED)
- GetIsLauncherEnabledFunction() {}
+ WebstorePrivateGetIsLauncherEnabledFunction() {}
protected:
- virtual ~GetIsLauncherEnabledFunction() {}
+ virtual ~WebstorePrivateGetIsLauncherEnabledFunction() {}
// ExtensionFunction:
virtual bool RunImpl() OVERRIDE;
@@ -282,15 +283,15 @@ class GetIsLauncherEnabledFunction : public AsyncExtensionFunction {
void OnIsLauncherCheckCompleted(bool is_enabled);
};
-class IsInIncognitoModeFunction : public AsyncExtensionFunction {
+class WebstorePrivateIsInIncognitoModeFunction : public AsyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("webstorePrivate.isInIncognitoMode",
WEBSTOREPRIVATE_ISININCOGNITOMODEFUNCTION)
- IsInIncognitoModeFunction() {}
+ WebstorePrivateIsInIncognitoModeFunction() {}
protected:
- virtual ~IsInIncognitoModeFunction() {}
+ virtual ~WebstorePrivateIsInIncognitoModeFunction() {}
// ExtensionFunction:
virtual bool RunImpl() OVERRIDE;
« no previous file with comments | « no previous file | chrome/browser/extensions/api/webstore_private/webstore_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698