| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 [ | 5 [ |
| 6 { | 6 { |
| 7 "namespace": "activityLogPrivate", | 7 "namespace": "activityLogPrivate", |
| 8 "description": "none", | 8 "description": "none", |
| 9 "types": [ | 9 "types": [ |
| 10 { | 10 { |
| 11 "id": "ExtensionActivityType", |
| 12 "type": "string", |
| 13 "enum": ["api_call", "api_event", "content_script", "dom_access", "dom_e
vent", "web_request"] |
| 14 }, |
| 15 { |
| 16 "id": "ExtensionActivityFilter", |
| 17 "type": "string", |
| 18 "enum": ["api_call", "api_event", "content_script", "dom_access", "dom_e
vent", "web_request", "any"], |
| 19 "description": "Exact match or any" |
| 20 }, |
| 21 { |
| 22 "id": "ExtensionActivityDomVerb", |
| 23 "type": "string", |
| 24 "enum": ["getter", "setter", "method", "inserted", "xhr", "webrequest",
"modified"] |
| 25 }, |
| 26 { |
| 11 "id": "ExtensionActivity", | 27 "id": "ExtensionActivity", |
| 12 "type": "object", | 28 "type": "object", |
| 13 "description": "This corresponds to a row from the ActivityLog database.
Fields will be blank if they were specified precisely in a lookup filter.", | 29 "description": "This corresponds to a row from the ActivityLog database.
Fields will be blank if they were specified precisely in a lookup filter.", |
| 14 "properties": { | 30 "properties": { |
| 15 "activityId": {"type": "string", "optional": true, "description": "An
ID of a row in the ActivityLog database that corresponds to the activity. ID is
set only on activities retrieved from the database."}, | 31 "activityId": {"type": "string", "optional": true, "description": "An
ID of a row in the ActivityLog database that corresponds to the activity. ID is
set only on activities retrieved from the database."}, |
| 16 "extensionId": {"type": "string", "optional": true}, | 32 "extensionId": {"type": "string", "optional": true}, |
| 17 "activityType": {"type": "string", "enum": ["api_call", "api_event", "
content_script", "dom_access", "dom_event", "web_request"]}, | 33 "activityType": {"$ref": "ExtensionActivityType"}, |
| 18 "time": {"type": "number", "optional": true}, | 34 "time": {"type": "number", "optional": true}, |
| 19 "apiCall": {"type": "string", "optional": true}, | 35 "apiCall": {"type": "string", "optional": true}, |
| 20 "args": {"type": "string", "optional": true}, | 36 "args": {"type": "string", "optional": true}, |
| 21 "count": {"type": "number", "optional": true}, | 37 "count": {"type": "number", "optional": true}, |
| 22 "pageUrl": {"type": "string", "optional": true}, | 38 "pageUrl": {"type": "string", "optional": true}, |
| 23 "pageTitle": {"type": "string", "optional": true}, | 39 "pageTitle": {"type": "string", "optional": true}, |
| 24 "argUrl": {"type": "string", "optional": true}, | 40 "argUrl": {"type": "string", "optional": true}, |
| 25 "other": { | 41 "other": { |
| 26 "type": "object", | 42 "type": "object", |
| 27 "optional": true, | 43 "optional": true, |
| 28 "properties": { | 44 "properties": { |
| 29 "prerender": {"type": "boolean", "optional": true}, | 45 "prerender": {"type": "boolean", "optional": true}, |
| 30 "domVerb": {"type": "string", "enum": ["getter", "setter", "method
", "inserted", "xhr", "webrequest", "modified"], "optional": true}, | 46 "domVerb": {"$ref": "ExtensionActivityDomVerb", "optional": true}, |
| 31 "webRequest": {"type": "string", "optional": true}, | 47 "webRequest": {"type": "string", "optional": true}, |
| 32 "extra": {"type": "string", "optional": true} | 48 "extra": {"type": "string", "optional": true} |
| 33 } | 49 } |
| 34 } | 50 } |
| 35 } | 51 } |
| 36 }, | 52 }, |
| 37 { | 53 { |
| 38 "id": "Filter", | 54 "id": "Filter", |
| 39 "type": "object", | 55 "type": "object", |
| 40 "description": "Used to specify values for a lookup.", | 56 "description": "Used to specify values for a lookup.", |
| 41 "properties": { | 57 "properties": { |
| 42 "extensionId": {"type": "string", "optional": true, "description": "Ex
act match"}, | 58 "extensionId": {"type": "string", "optional": true, "description": "Ex
act match"}, |
| 43 "activityType": {"type": "string", "enum": ["api_call", "api_event", "
content_script", "dom_access", "dom_event", "web_request", "any"], "description"
: "Exact match or any"}, | 59 "activityType": {"$ref": "ExtensionActivityFilter"}, |
| 44 "apiCall": {"type": "string", "optional": true, "description": "Exact
match"}, | 60 "apiCall": {"type": "string", "optional": true, "description": "Exact
match"}, |
| 45 "pageUrl": {"type": "string", "optional": true, "description": "Treate
d as a prefix"}, | 61 "pageUrl": {"type": "string", "optional": true, "description": "Treate
d as a prefix"}, |
| 46 "argUrl": {"type": "string", "optional": true, "description": "Treated
as a prefix"}, | 62 "argUrl": {"type": "string", "optional": true, "description": "Treated
as a prefix"}, |
| 47 "daysAgo": {"type": "integer", "optional": true, "description": "Used
to lookup a precise day; today is 0"} | 63 "daysAgo": {"type": "integer", "optional": true, "description": "Used
to lookup a precise day; today is 0"} |
| 48 } | 64 } |
| 49 }, | 65 }, |
| 50 { | 66 { |
| 51 "id": "ActivityResultSet", | 67 "id": "ActivityResultSet", |
| 52 "type": "object", | 68 "type": "object", |
| 53 "description": "This holds the results of a lookup, the filter of the lo
okup, the time of the lookup, and whether there are more results that match.", | 69 "description": "This holds the results of a lookup, the filter of the lo
okup, the time of the lookup, and whether there are more results that match.", |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 "parameters": [ | 137 "parameters": [ |
| 122 { | 138 { |
| 123 "name": "activity", | 139 "name": "activity", |
| 124 "$ref": "ExtensionActivity" | 140 "$ref": "ExtensionActivity" |
| 125 } | 141 } |
| 126 ] | 142 ] |
| 127 } | 143 } |
| 128 ] | 144 ] |
| 129 } | 145 } |
| 130 ] | 146 ] |
| OLD | NEW |