1 // Copyright 2014 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.
5 /** @fileoverview Externs generated from namespace: echoPrivate */
10 chrome.echoPrivate = {};
13 * Sets the offer info in Local State.
14 * @param {string} id The service id of the echo offer.
15 * @param {Object} offerInfo The offer info.
17 chrome.echoPrivate.setOfferInfo = function(id, offerInfo) {};
20 * Check in Local State for the offer info.
21 * @param {string} id The service id of the offer eligibility check.
22 * @param {Function} callback
24 chrome.echoPrivate.getOfferInfo = function(id, callback) {};
27 * Get the group or coupon code from underlying storage.
28 * @param {string} type Type of coupon code requested to be read (coupon or
30 * @param {Function} callback
32 chrome.echoPrivate.getRegistrationCode = function(type, callback) {};
35 * Get the OOBE timestamp.
36 * @param {Function} callback
38 chrome.echoPrivate.getOobeTimestamp = function(callback) {};
41 * If device policy allows user to redeem offer, displays a native dialog
42 * asking user for a consent to verify device's eligibility for the offer. If
43 * the device policy forbids user to redeem offers, displays a native dialog
44 * informing user the offer redeeming is disabled.
45 * @param {Object} consentRequester Information about the service requesting
47 * @param {Function} callback
49 chrome.echoPrivate.getUserConsent = function(consentRequester, callback) {};