Chromium Code Reviews| 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); |
|
Randy Smith (Not in Mondays)
2012/12/10 19:04:36
I don't understand what runs the callback? Do you
benjhayden
2012/12/10 19:10:48
This is in the same boat as search(), download(),
Randy Smith (Not in Mondays)
2012/12/10 19:17:27
Sorry, I'm sure that this is because I don't look
benjhayden
2012/12/10 19:26:29
The code that iterates through the items to be rem
Randy Smith (Not in Mondays)
2012/12/11 15:28:01
So what's the source dataflow for the ids that are
benjhayden
2012/12/11 18:47:45
Oh! Sorry, I completely missed that the callback t
|
| // TODO(benjhayden) Comment. |
| [nodoc] static void setDestination(long downloadId, DOMString relativePath); |