| 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 72bf588f6f7c198358a76865728c2fae0103809b..4cf31fb635aaf60f3ba9a4bfa234a339b5e56780 100644
|
| --- a/content/browser/download/download_resource_handler.h
|
| +++ b/content/browser/download/download_resource_handler.h
|
| @@ -11,11 +11,11 @@
|
| #include "base/callback.h"
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/timer.h"
|
| -#include "content/browser/download/download_file.h"
|
| #include "content/browser/download/download_id.h"
|
| #include "content/browser/download/download_types.h"
|
| #include "content/browser/renderer_host/global_request_id.h"
|
| #include "content/browser/renderer_host/resource_handler.h"
|
| +#include "net/base/net_errors.h"
|
|
|
| class DownloadFileManager;
|
| class ResourceDispatcherHost;
|
| @@ -89,6 +89,9 @@ class DownloadResourceHandler : public ResourceHandler {
|
|
|
| void set_content_disposition(const std::string& content_disposition);
|
|
|
| + // Location within the resource at which to start the download.
|
| + void set_start_offset(int64 bytes) { start_offset_ = bytes; }
|
| +
|
| void CheckWriteProgress();
|
|
|
| std::string DebugString() const;
|
| @@ -117,6 +120,7 @@ class DownloadResourceHandler : public ResourceHandler {
|
| base::TimeTicks download_start_time_; // used to collect stats.
|
| base::TimeTicks last_read_time_; // used to collect stats.
|
| size_t last_buffer_size_; // used to collect stats.
|
| + int64 start_offset_;
|
| static const int kReadBufSize = 32768; // bytes
|
| static const int kThrottleTimeMs = 200; // milliseconds
|
|
|
|
|