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
3 // found in the LICENSE file.
7 "namespace": "activityLogPrivate",
11 "id": "ExtensionActivity",
13 "description": "This corresponds to a row from the ActivityLog database. Fields will be blank if they were specified precisely in a lookup filter.",
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."},
16 "extensionId": {"type": "string", "optional": true},
17 "activityType": {"type": "string", "enum": ["api_call", "api_event", "content_script", "dom_access", "dom_event", "web_request"]},
18 "time": {"type": "number", "optional": true},
19 "apiCall": {"type": "string", "optional": true},
20 "args": {"type": "string", "optional": true},
21 "count": {"type": "number", "optional": true},
22 "pageUrl": {"type": "string", "optional": true},
23 "pageTitle": {"type": "string", "optional": true},
24 "argUrl": {"type": "string", "optional": true},
29 "prerender": {"type": "boolean", "optional": true},
30 "domVerb": {"type": "string", "enum": ["getter", "setter", "method", "inserted", "xhr", "webrequest", "modified"], "optional": true},
31 "webRequest": {"type": "string", "optional": true},
32 "extra": {"type": "string", "optional": true}
40 "description": "Used to specify values for a lookup.",
42 "extensionId": {"type": "string", "optional": true, "description": "Exact match"},
43 "activityType": {"type": "string", "enum": ["api_call", "api_event", "content_script", "dom_access", "dom_event", "web_request", "any"], "description": "Exact match or any"},
44 "apiCall": {"type": "string", "optional": true, "description": "Exact match"},
45 "pageUrl": {"type": "string", "optional": true, "description": "Treated as a prefix"},
46 "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"}
51 "id": "ActivityResultSet",
53 "description": "This holds the results of a lookup, the filter of the lookup, the time of the lookup, and whether there are more results that match.",
55 "activities": {"type": "array", "items": {"$ref": "ExtensionActivity"}}
61 "name": "getExtensionActivities",
63 "description": "Retrieves activity from the ActivityLog that matches the specified filter.",
68 "description": "Fill out the fields that you want to search for in the database."
76 "$ref": "ActivityResultSet"
83 "name": "deleteActivities",
85 "description": "Deletes activities in the ActivityLog database specified in the array of activity IDs.",
88 "name": "activityIds",
90 "items": { "type": "string" },
91 "description": "Erases only the activities which IDs are listed in the array."
96 "name": "deleteDatabase",
98 "description": "Deletes the entire ActivityLog database.",
102 "name": "deleteUrls",
104 "description": "Delete URLs in the ActivityLog database.",
109 "items": { "type": "string" },
110 "description": "Erases only the URLs listed; if empty, erases all URLs.",
118 "name": "onExtensionActivity",
120 "description": "Fired when a given extension performs another activity.",
124 "$ref": "ExtensionActivity"