Index: content/public/test/test_file_error_injector.cc |
diff --git a/content/public/test/test_file_error_injector.cc b/content/public/test/test_file_error_injector.cc |
index 04e9acc3deda5477eefbe22890550805f85199a7..2be32390d346b5db2db92375bdfc32adb18ce467 100644 |
--- a/content/public/test/test_file_error_injector.cc |
+++ b/content/public/test/test_file_error_injector.cc |
@@ -14,10 +14,12 @@ |
#include "content/browser/download/download_manager_impl.h" |
#include "content/browser/loader/resource_dispatcher_host_impl.h" |
#include "content/public/browser/browser_thread.h" |
+#include "content/public/browser/download_interrupt_reasons.h" |
#include "content/public/browser/power_save_blocker.h" |
#include "url/gurl.h" |
namespace content { |
+template <typename StatusType> |
class ByteStreamReader; |
namespace { |
@@ -34,7 +36,7 @@ class DownloadFileWithErrors: public DownloadFileImpl { |
const GURL& url, |
const GURL& referrer_url, |
bool calculate_hash, |
- scoped_ptr<ByteStreamReader> stream, |
+ scoped_ptr<ByteStreamReader<DownloadInterruptReason> > stream, |
const net::BoundNetLog& bound_net_log, |
scoped_ptr<PowerSaveBlocker> power_save_blocker, |
base::WeakPtr<DownloadDestinationObserver> observer, |
@@ -109,7 +111,7 @@ DownloadFileWithErrors::DownloadFileWithErrors( |
const GURL& url, |
const GURL& referrer_url, |
bool calculate_hash, |
- scoped_ptr<ByteStreamReader> stream, |
+ scoped_ptr<ByteStreamReader<DownloadInterruptReason> > stream, |
const net::BoundNetLog& bound_net_log, |
scoped_ptr<PowerSaveBlocker> power_save_blocker, |
base::WeakPtr<DownloadDestinationObserver> observer, |
@@ -267,7 +269,7 @@ class DownloadFileWithErrorsFactory : public DownloadFileFactory { |
const GURL& url, |
const GURL& referrer_url, |
bool calculate_hash, |
- scoped_ptr<ByteStreamReader> stream, |
+ scoped_ptr<ByteStreamReader<DownloadInterruptReason> > stream, |
const net::BoundNetLog& bound_net_log, |
base::WeakPtr<DownloadDestinationObserver> observer) OVERRIDE; |
@@ -301,7 +303,7 @@ DownloadFile* DownloadFileWithErrorsFactory::CreateFile( |
const GURL& url, |
const GURL& referrer_url, |
bool calculate_hash, |
- scoped_ptr<ByteStreamReader> stream, |
+ scoped_ptr<ByteStreamReader<DownloadInterruptReason> > stream, |
const net::BoundNetLog& bound_net_log, |
base::WeakPtr<DownloadDestinationObserver> observer) { |
if (injected_errors_.find(url.spec()) == injected_errors_.end()) { |