| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_OFFERS_PRIVATE_API_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_OFFERS_PRIVATE_API_H_ | |
| 7 | |
| 8 #include "base/compiler_specific.h" | |
| 9 #include "chrome/browser/extensions/extension_function.h" | |
| 10 | |
| 11 class GetCouponCodeFunction : public SyncExtensionFunction { | |
| 12 public: | |
| 13 GetCouponCodeFunction(); | |
| 14 | |
| 15 protected: | |
| 16 virtual ~GetCouponCodeFunction(); | |
| 17 virtual bool RunImpl() OVERRIDE; | |
| 18 | |
| 19 private: | |
| 20 DECLARE_EXTENSION_FUNCTION_NAME("offersPrivate.getCouponCode"); | |
| 21 }; | |
| 22 | |
| 23 class GetUserConsentFunction : public AsyncExtensionFunction { | |
| 24 public: | |
| 25 GetUserConsentFunction(); | |
| 26 | |
| 27 // Called when user's consent response is known. | |
| 28 void SetConsent(bool is_consent); | |
| 29 | |
| 30 protected: | |
| 31 virtual ~GetUserConsentFunction(); | |
| 32 virtual bool RunImpl() OVERRIDE; | |
| 33 | |
| 34 private: | |
| 35 // Show user consent confirmation bar. | |
| 36 void ShowConsentInfoBar(); | |
| 37 | |
| 38 DECLARE_EXTENSION_FUNCTION_NAME("offersPrivate.getUserConsent"); | |
| 39 }; | |
| 40 | |
| 41 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_OFFERS_PRIVATE_API_H_ | |
| OLD | NEW |