Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4840)

Unified Diff: chrome/common/extensions/api/history.json

Issue 9358073: First version of the time slicing on the urls. Not ready for review yet. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added relative time to time slicing Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/api/history.json
diff --git a/chrome/common/extensions/api/history.json b/chrome/common/extensions/api/history.json
index 0009891ec162e293b650ccf644f19f7409e5f604..ce94a5a8e97a089f4f89b6b27d249ef57021e0a3 100644
--- a/chrome/common/extensions/api/history.json
+++ b/chrome/common/extensions/api/history.json
@@ -58,6 +58,30 @@
]
},
{
+ "name": "getMostVisited",
+ "type": "function",
+ "description": "Retrieves most visited URLs on the time specified.",
+ "parameters": [
+ {
+ "name": "details",
+ "type": "object",
+ "properties": {
+ "startTime": {"type": "number", "optional": true, "description": "Limit results to those visited between this and |endTime| on each day, represented in milliseconds since the epoch."},
+ "endTime": {"type": "number", "optional": true, "description": "Limit results to those visited between |startTime| and this on each day, represented in milliseconds since the epoch."},
+ "dayOfTheWeek": {"type": "integer", "optional": true, "minimum": 0, "description": "Limit results to those visited on this day of the week (0 - Sunday, 1 - Monday, etc.) starting with this week."},
+ "maxResults": {"type": "integer", "optional": true, "minimum": 0, "description": "The maximum number of results to retrieve. Defaults to 100."}
+ }
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "parameters": [
+ { "name": "results", "type": "array", "items": { "$ref": "HistoryItem"} }
+ ]
+ }
+ ]
+ },
+ {
"name": "getVisits",
"type": "function",
"description": "Retrieves information about visits to a URL.",
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | chrome/common/extensions/docs/examples/api/history/showTimeFilter/clock.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698