Index: content/browser/download/download_resource_handler.cc |
diff --git a/content/browser/download/download_resource_handler.cc b/content/browser/download/download_resource_handler.cc |
index 2a02cf926dfc1f159e3d91b4f62c6e685ca3fef0..8786b457e0b2177cd4f44d53672ab5a6cc663ee7 100644 |
--- a/content/browser/download/download_resource_handler.cc |
+++ b/content/browser/download/download_resource_handler.cc |
@@ -49,7 +49,7 @@ void CallStartedCBOnUIThread( |
// DownloadResourceHandler members from the UI thread. |
static void StartOnUIThread( |
scoped_ptr<DownloadCreateInfo> info, |
- scoped_ptr<ByteStreamReader> stream, |
+ scoped_ptr<ByteStreamReader<DownloadInterruptReason> > stream, |
const DownloadUrlParameters::OnStartedCallback& started_cb) { |
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
@@ -143,8 +143,8 @@ bool DownloadResourceHandler::OnResponseStarted( |
request_info->GetPageTransition())); |
// Create the ByteStream for sending data to the download sink. |
- scoped_ptr<ByteStreamReader> stream_reader; |
- CreateByteStream( |
+ scoped_ptr<ByteStreamReader<DownloadInterruptReason> > stream_reader; |
+ CreateByteStream<DownloadInterruptReason>( |
base::MessageLoopProxy::current(), |
BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE), |
kDownloadByteStreamSize, &stream_writer_, &stream_reader); |