Index: chrome/common/extensions/api/history.json |
diff --git a/chrome/common/extensions/api/history.json b/chrome/common/extensions/api/history.json |
index c2c0e62a600194ba24a7d06b17da089839303173..7d833088b470bcb45025342d0b7acce19dc7e425 100644 |
--- a/chrome/common/extensions/api/history.json |
+++ b/chrome/common/extensions/api/history.json |
@@ -34,6 +34,16 @@ |
"description": "The <a href='#transition_types'>transition type</a> for this visit from its referrer." |
} |
} |
+ }, |
+ { |
+ "id": "MostVisitedURL", |
+ "type": "object", |
+ "description": "An object encapsulating a most visited URL, such as the URLs on the new tab page.", |
+ "properties": { |
+ "url": {"type": "string", "description": "The most visited URL."}, |
+ "title": {"type": "string", "description": "The title of the page"}, |
+ "redirects": {"type": "array", "items": { "type": "string" }, "description": "The redirect history of the URL."} |
+ } |
} |
], |
"functions": [ |
@@ -83,6 +93,30 @@ |
] |
}, |
{ |
+ "name": "getMostVisited", |
+ "type": "function", |
+ "description": "Retrieves the N most visited history items.", |
+ "parameters": [ |
+ { |
+ "name": "details", |
+ "type": "object", |
+ "properties": { |
+ "maxResults": { |
+ "type": "integer", |
+ "description": "An integer representing the number of entries you want to retreive." |
+ } |
+ } |
+ }, |
+ { |
+ "name": "callback", |
+ "type": "function", |
+ "parameters": [ |
+ { "name": "results", "type": "array", "items": { "$ref": "MostVisitedURL"} } |
+ ] |
+ } |
+ ] |
+ }, |
+ { |
"name": "addUrl", |
"type": "function", |
"description": "Adds a URL to the history at the current time with a <a href='#transition_types'>transition type</a> of \"link\".", |