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

Unified Diff: chrome/browser/extensions/api/gcd_private/gcd_private_api.h

Issue 363883002: Add API stubs for GCD device commands. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Wed 07/02/2014 1:25:27.38 Created 6 years, 6 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
Index: chrome/browser/extensions/api/gcd_private/gcd_private_api.h
diff --git a/chrome/browser/extensions/api/gcd_private/gcd_private_api.h b/chrome/browser/extensions/api/gcd_private/gcd_private_api.h
index f0f03c2b48dc2e679e3369f1c2be7f17ae9d13bb..0844e7e61038a6b42224be33ffaad4abff38c6e3 100644
--- a/chrome/browser/extensions/api/gcd_private/gcd_private_api.h
+++ b/chrome/browser/extensions/api/gcd_private/gcd_private_api.h
@@ -212,6 +212,85 @@ class GcdPrivateSetupStopFunction : public ChromeAsyncExtensionFunction {
private:
};
+class GcdPrivateGetCommandDefsFunction : public ChromeAsyncExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("gcdPrivate.getCommandDefs",
+ GCDPRIVATE_GETCOMMANDDEFS)
+
+ GcdPrivateGetCommandDefsFunction();
+
+ protected:
+ virtual ~GcdPrivateGetCommandDefsFunction();
+
+ // SyncExtensionFunction overrides.
+ virtual bool RunAsync() OVERRIDE;
+
+ private:
+};
+
+class GcdPrivateInsertCommandFunction : public ChromeAsyncExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("gcdPrivate.insertCommand",
+ GCDPRIVATE_INSERTCOMMAND)
+
+ GcdPrivateInsertCommandFunction();
+
+ protected:
+ virtual ~GcdPrivateInsertCommandFunction();
+
+ // SyncExtensionFunction overrides.
+ virtual bool RunAsync() OVERRIDE;
+
+ private:
+};
+
+class GcdPrivateGetCommandFunction : public ChromeAsyncExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("gcdPrivate.getCommand", GCDPRIVATE_GETCOMMAND)
+
+ GcdPrivateGetCommandFunction();
+
+ protected:
+ virtual ~GcdPrivateGetCommandFunction();
+
+ // SyncExtensionFunction overrides.
+ virtual bool RunAsync() OVERRIDE;
+
+ private:
+};
+
+class GcdPrivateCancelCommandFunction : public ChromeAsyncExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("gcdPrivate.cancelCommand",
+ GCDPRIVATE_CANCELCOMMAND)
+
+ GcdPrivateCancelCommandFunction();
+
+ protected:
+ virtual ~GcdPrivateCancelCommandFunction();
+
+ // SyncExtensionFunction overrides.
+ virtual bool RunAsync() OVERRIDE;
+
+ private:
+};
+
+class GcdPrivateGetCommandsListFunction : public ChromeAsyncExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("gcdPrivate.getCommandsList",
+ GCDPRIVATE_GETCOMMANDSLIST)
+
+ GcdPrivateGetCommandsListFunction();
+
+ protected:
+ virtual ~GcdPrivateGetCommandsListFunction();
+
+ // SyncExtensionFunction overrides.
+ virtual bool RunAsync() OVERRIDE;
+
+ private:
+};
+
} // namespace extensions
#endif // CHROME_BROWSER_EXTENSIONS_API_GCD_PRIVATE_GCD_PRIVATE_API_H_

Powered by Google App Engine
This is Rietveld 408576698