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": "ExtensionActivityType",
13 "enum": ["api_call", "api_event", "content_script", "dom_access", "dom_event", "web_request"]
16 "id": "ExtensionActivityFilter",
18 "enum": ["api_call", "api_event", "content_script", "dom_access", "dom_event", "web_request", "any"],
19 "description": "Exact match or any"
22 "id": "ExtensionActivityDomVerb",
24 "enum": ["getter", "setter", "method", "inserted", "xhr", "webrequest", "modified"]
27 "id": "ExtensionActivity",
29 "description": "This corresponds to a row from the ActivityLog database. Fields will be blank if they were specified precisely in a lookup filter.",
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."},
32 "extensionId": {"type": "string", "optional": true},
33 "activityType": {"$ref": "ExtensionActivityType"},
34 "time": {"type": "number", "optional": true},
35 "apiCall": {"type": "string", "optional": true},
36 "args": {"type": "string", "optional": true},
37 "count": {"type": "number", "optional": true},
38 "pageUrl": {"type": "string", "optional": true},
39 "pageTitle": {"type": "string", "optional": true},
40 "argUrl": {"type": "string", "optional": true},
45 "prerender": {"type": "boolean", "optional": true},
46 "domVerb": {"$ref": "ExtensionActivityDomVerb", "optional": true},
47 "webRequest": {"type": "string", "optional": true},
48 "extra": {"type": "string", "optional": true}
56 "description": "Used to specify values for a lookup.",
58 "extensionId": {"type": "string", "optional": true, "description": "Exact match"},
59 "activityType": {"$ref": "ExtensionActivityFilter"},
60 "apiCall": {"type": "string", "optional": true, "description": "Exact match"},
61 "pageUrl": {"type": "string", "optional": true, "description": "Treated as a prefix"},
62 "argUrl": {"type": "string", "optional": true, "description": "Treated as a prefix"},
63 "daysAgo": {"type": "integer", "optional": true, "description": "Used to lookup a precise day; today is 0"}
67 "id": "ActivityResultSet",
69 "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.",
71 "activities": {"type": "array", "items": {"$ref": "ExtensionActivity"}}
77 "name": "getExtensionActivities",
79 "description": "Retrieves activity from the ActivityLog that matches the specified filter.",
84 "description": "Fill out the fields that you want to search for in the database."
92 "$ref": "ActivityResultSet"
99 "name": "deleteActivities",
101 "description": "Deletes activities in the ActivityLog database specified in the array of activity IDs.",
104 "name": "activityIds",
106 "items": { "type": "string" },
107 "description": "Erases only the activities which IDs are listed in the array."
112 "name": "deleteDatabase",
114 "description": "Deletes the entire ActivityLog database.",
118 "name": "deleteUrls",
120 "description": "Delete URLs in the ActivityLog database.",
125 "items": { "type": "string" },
126 "description": "Erases only the URLs listed; if empty, erases all URLs.",
134 "name": "onExtensionActivity",
136 "description": "Fired when a given extension performs another activity.",
140 "$ref": "ExtensionActivity"