Index: chrome/browser/chromeos/extensions/echo_private_api.h |
diff --git a/chrome/browser/chromeos/extensions/echo_private_api.h b/chrome/browser/chromeos/extensions/echo_private_api.h |
index 8e813992e676cdbacabe45f7d9512701287e19ac..c75c5e47dbea0398d4308e1d8f8fa35a6dc00310 100644 |
--- a/chrome/browser/chromeos/extensions/echo_private_api.h |
+++ b/chrome/browser/chromeos/extensions/echo_private_api.h |
@@ -8,7 +8,7 @@ |
#include "base/compiler_specific.h" |
#include "chrome/browser/extensions/extension_function.h" |
-class GetRegistrationCodeFunction : public SyncExtensionFunction { |
+class GetRegistrationCodeFunction : public AsyncExtensionFunction { |
public: |
GetRegistrationCodeFunction(); |
@@ -17,6 +17,7 @@ class GetRegistrationCodeFunction : public SyncExtensionFunction { |
virtual bool RunImpl() OVERRIDE; |
private: |
+ void GetRegistrationCode(const std::string& type); |
DECLARE_EXTENSION_FUNCTION("echoPrivate.getRegistrationCode", |
ECHOPRIVATE_GETREGISTRATIONCODE) |
}; |
@@ -34,4 +35,18 @@ class GetOobeTimestampFunction : public AsyncExtensionFunction { |
DECLARE_EXTENSION_FUNCTION("echoPrivate.getOobeTimestamp", |
ECHOPRIVATE_GETOOBETIMESTAMP) |
}; |
+ |
+class CheckAllowRedeemOffersFunction : public AsyncExtensionFunction { |
+ public: |
+ CheckAllowRedeemOffersFunction(); |
+ |
+ protected: |
+ virtual ~CheckAllowRedeemOffersFunction(); |
+ virtual bool RunImpl() OVERRIDE; |
+ |
+ private: |
+ void CheckAllowRedeemOffers(); |
+ DECLARE_EXTENSION_FUNCTION("echoPrivate.checkAllowRedeemOffers", |
+ ECHOPRIVATE_CHECKALLOWREDEEMOFFERS) |
+}; |
#endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_ECHO_PRIVATE_API_H_ |