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

Unified Diff: chrome/common/extensions/api/downloads.idl

Issue 10834129: Implement chrome.downloads.erase() (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: @r172329 Created 8 years 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
« no previous file with comments | « chrome/browser/extensions/api/downloads/downloads_api_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/downloads.idl
diff --git a/chrome/common/extensions/api/downloads.idl b/chrome/common/extensions/api/downloads.idl
index c3e21828a57542761b6cbf7864f79f0447dcb01d..110932c1856a9a69cd531a033259e9d564ef3995 100644
--- a/chrome/common/extensions/api/downloads.idl
+++ b/chrome/common/extensions/api/downloads.idl
@@ -365,9 +365,10 @@ namespace downloads {
// |downloadId|: The identifier for the downloaded file.
static void open(long downloadId);
- // Erase matching $ref:DownloadItem from history
- [nodoc] static void erase(DownloadQuery query,
- optional EraseCallback callback);
+ // Erase matching $ref:DownloadItem from history. An $ref.onErased event
+ // will fire for each $ref.DownloadItem that matches <code>query</code>,
+ // then <code>callback</code> will be called.
+ static void erase(DownloadQuery query, optional EraseCallback callback);
// TODO(benjhayden) Comment.
[nodoc] static void setDestination(long downloadId, DOMString relativePath);
« no previous file with comments | « chrome/browser/extensions/api/downloads/downloads_api_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698