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",
14 "name": "setOfferInfo",
15 "description": "Sets the offer info in Local State.",
21 "description": "The service id of the echo offer."
26 "additionalProperties": { "type": "any" },
27 "description": "The offer info."
32 "name": "getOfferInfo",
33 "description": "Check in Local State for the offer info.",
39 "description": "The service id of the offer eligibility check."
48 "additionalProperties": { "type": "any" },
49 "description": "The returned offer info. If the offer info is not available, api will raise error."
56 "name": "getRegistrationCode",
57 "description": "Get the group or coupon code from underlying storage.",
63 "description": "Type of coupon code requested to be read (coupon or group)."
72 "description" : "The coupon code."
79 "name": "getOobeTimestamp",
80 "description": "Get the OOBE timestamp.",
90 "description" : "The OOBE timestamp."
97 "name": "getUserConsent",
98 "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.",
102 "name": "consentRequester",
103 "description": "Information about the service requesting user consent.",
109 "description": "User friendly name of the service that is requesting the consent."
113 "description": "URL origin of the service requesting the consent."
124 "description": "Whether the user consent was given."