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

Unified Diff: content/public/test/download_test_observer.h

Issue 11068027: OnDownloadStarted takes DownloadItem* instead of DownloadId (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: @r160830 Created 8 years, 2 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
« no previous file with comments | « content/public/browser/resource_dispatcher_host.h ('k') | content/public/test/download_test_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/download_test_observer.h
diff --git a/content/public/test/download_test_observer.h b/content/public/test/download_test_observer.h
index 3582cc2743975d2f63b5536eb8cd8d892c0ad00b..384dcf5c0115275884eeae46c32e686e68d0e701 100644
--- a/content/public/test/download_test_observer.h
+++ b/content/public/test/download_test_observer.h
@@ -261,7 +261,7 @@ class DownloadTestItemCreationObserver
void WaitForDownloadItemCreation();
- DownloadId download_id() const { return download_id_; }
+ int download_id() const { return download_id_; }
net::Error error() const { return error_; }
bool started() const { return called_back_count_ > 0; }
bool succeeded() const { return started() && (error_ == net::OK); }
@@ -273,12 +273,10 @@ class DownloadTestItemCreationObserver
~DownloadTestItemCreationObserver();
- void DownloadItemCreationCallback(DownloadId download_id,
- net::Error error);
+ void DownloadItemCreationCallback(DownloadItem* item, net::Error error);
// The download creation information we received.
- DownloadId download_id_;
-
+ int download_id_;
net::Error error_;
// Count of callbacks.
« no previous file with comments | « content/public/browser/resource_dispatcher_host.h ('k') | content/public/test/download_test_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698