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

Unified Diff: content/browser/download/download_resource_handler.h

Issue 18284005: Make ByteStream independent from DownloadInterruptReason (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove CONTENT_EXPORT all Created 7 years, 5 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
Index: content/browser/download/download_resource_handler.h
diff --git a/content/browser/download/download_resource_handler.h b/content/browser/download/download_resource_handler.h
index 866bffb6a9f1f05bb866afd3faec745f9a4c3e17..802f5286260659bd25600ead4cc348f7f796e68f 100644
--- a/content/browser/download/download_resource_handler.h
+++ b/content/browser/download/download_resource_handler.h
@@ -11,6 +11,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/timer/timer.h"
#include "content/browser/loader/resource_handler.h"
+#include "content/public/browser/download_interrupt_reasons.h"
#include "content/public/browser/download_manager.h"
#include "content/public/browser/download_save_info.h"
#include "content/public/browser/download_url_parameters.h"
@@ -23,8 +24,8 @@ class URLRequest;
} // namespace net
namespace content {
+template <typename StatusType>
class ByteStreamWriter;
-class ByteStreamReader;
class DownloadRequestHandle;
struct DownloadCreateInfo;
@@ -116,7 +117,8 @@ class CONTENT_EXPORT DownloadResourceHandler
// Data flow
scoped_refptr<net::IOBuffer> read_buffer_; // From URLRequest.
- scoped_ptr<ByteStreamWriter> stream_writer_; // To rest of system.
+ scoped_ptr<ByteStreamWriter<DownloadInterruptReason> >
+ stream_writer_; // To rest of system.
// The following are used to collect stats.
base::TimeTicks download_start_time_;

Powered by Google App Engine
This is Rietveld 408576698