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..e352dab76a1589eb42cc2f44784f8b4f0d12c4fd 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 AllowRedeemOffersFunction : public AsyncExtensionFunction { |
+ public: |
+ AllowRedeemOffersFunction(); |
+ |
+ protected: |
+ virtual ~AllowRedeemOffersFunction(); |
+ virtual bool RunImpl() OVERRIDE; |
+ |
+ private: |
+ void AllowRedeemOffersCallback(); |
+ DECLARE_EXTENSION_FUNCTION("echoPrivate.allowRedeemOffers", |
+ ECHOPRIVATE_ALLOWREDEEMOFFERS) |
+}; |
#endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_ECHO_PRIVATE_API_H_ |