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

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

Issue 9721013: Move topSites API out of experimental (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Changes to reflect revision 127555 Created 8 years, 9 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 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\".",

Powered by Google App Engine
This is Rietveld 408576698