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.
7 "namespace": "echoPrivate",
9 "implemented_in": "chrome/browser/chromeos/extensions/echo_private_api.h"
11 "description": "none",
12 "platforms": ["chromeos"],
15 "name": "setOfferInfo",
16 "description": "Sets the offer info in Local State.",
22 "description": "The service id of the echo offer."
27 "additionalProperties": { "type": "any" },
28 "description": "The offer info."
33 "name": "getOfferInfo",
34 "description": "Check in Local State for the offer info.",
40 "description": "The service id of the offer eligibility check."
49 "additionalProperties": { "type": "any" },
50 "description": "The returned offer info. If the offer info is not available, api will raise error."
57 "name": "getRegistrationCode",
58 "description": "Get the group or coupon code from underlying storage.",
64 "description": "Type of coupon code requested to be read (coupon or group)."
73 "description" : "The coupon code."
80 "name": "getOobeTimestamp",
81 "description": "Get the OOBE timestamp.",
91 "description" : "The OOBE timestamp."
98 "name": "getUserConsent",
99 "description": "If device policy allows user to redeem offer, displays a native dialog asking user for a consent to verify device's eligibility for the offer. If the device policy forbids user to redeem offers, displays a native dialog informing user the offer redeeming is disabled.",
103 "name": "consentRequester",
104 "description": "Information about the service requesting user consent.",
110 "description": "User friendly name of the service that is requesting the consent."
114 "description": "URL origin of the service requesting the consent."
125 "description": "Whether the user consent was given."