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 [ 6 { 7 "namespace": "experimental.rlz", 8 "description": "none", 9 "functions": [ 10 { 11 "name": "recordProductEvent", 12 "type": "function", 13 "description": "Records an RLZ event for a given product's access point.", 14 "parameters": [ 15 {"name": "product", "type": "string", "minLength": 1, "maxLength": 1}, 16 {"name": "accessPoint", "type": "string", "minLength": 1, "maxLength": 2}, 17 {"name": "event", "type": "string", "enum": ["install", "set-to-google", "first-search", "activate"]} 18 ] 19 }, 20 { 21 "name": "getAccessPointRlz", 22 "type": "function", 23 "description": "Gets the RLZ string to be used when accessing a Google property through the given access point.", 24 "parameters": [ 25 {"name": "accessPoint", "type": "string", "minLength": 1, "maxLength": 2}, 26 {"name": "callback", "type": "function", "parameters": [{"name": "rlz", "type": "string"}]} 27 ] 28 }, 29 { 30 "name": "sendFinancialPing", 31 "type": "function", 32 "description": "Sends Google promotional information about this extension.", 33 "parameters": [ 34 {"name": "product", "type": "string", "minLength": 1, "maxLength": 1}, 35 {"name": "accessPoints", "type": "array", "items": {"type": "string", "minLength": 1, "maxLength": 2}, "minItems": 1}, 36 {"name": "signature", "type": "string"}, 37 {"name": "brand", "type": "string"}, 38 {"name": "id", "type": "string"}, 39 {"name": "lang", "type": "string"}, 40 {"name": "exclude_machine_id", "type": "boolean"}, 41 {"name": "callback", "type": "function", "optional": true, "parameters": [{"name": "sent", "type": "boolean"}]} 42 ] 43 }, 44 { 45 "name": "clearProductState", 46 "type": "function", 47 "description": "Clears all product-specific RLZ state from the machine, as well as clearing all events for the specified access points.", 48 "parameters": [ 49 {"name": "product", "type": "string", "minLength": 1, "maxLength": 1}, 50 {"name": "accessPoints", "type": "array", "items": {"type": "string", "minLength": 1, "maxLength": 2}, "minItems": 1} 51 ] 52 } 53 ], 54 "events": [] 55 } 56 ] 57