| OLD | NEW |
| 1 // Copyright (c) 20010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 20010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WEBKIT_BLOB_BLOB_URL_REQUEST_JOB_H_ | 5 #ifndef WEBKIT_BLOB_BLOB_URL_REQUEST_JOB_H_ |
| 6 #define WEBKIT_BLOB_BLOB_URL_REQUEST_JOB_H_ | 6 #define WEBKIT_BLOB_BLOB_URL_REQUEST_JOB_H_ |
| 7 | 7 |
| 8 #include "base/platform_file.h" | 8 #include "base/platform_file.h" |
| 9 #include "base/ref_counted.h" | 9 #include "base/ref_counted.h" |
| 10 #include "base/scoped_callback_factory.h" | 10 #include "base/scoped_callback_factory.h" |
| 11 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
| 12 #include "base/task.h" |
| 12 #include "net/base/completion_callback.h" | 13 #include "net/base/completion_callback.h" |
| 13 #include "net/base/file_stream.h" | 14 #include "net/base/file_stream.h" |
| 14 #include "net/http/http_byte_range.h" | 15 #include "net/http/http_byte_range.h" |
| 15 #include "net/url_request/url_request_job.h" | 16 #include "net/url_request/url_request_job.h" |
| 16 #include "webkit/blob/blob_data.h" | 17 #include "webkit/blob/blob_data.h" |
| 17 | 18 |
| 18 namespace base { | 19 namespace base { |
| 19 class MessageLoopProxy; | 20 class MessageLoopProxy; |
| 20 struct PlatformFileInfo; | 21 struct PlatformFileInfo; |
| 21 } | 22 } |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 int64 remaining_bytes_; | 72 int64 remaining_bytes_; |
| 72 scoped_refptr<net::IOBuffer> read_buf_; | 73 scoped_refptr<net::IOBuffer> read_buf_; |
| 73 int read_buf_offset_; | 74 int read_buf_offset_; |
| 74 int read_buf_size_; | 75 int read_buf_size_; |
| 75 int read_buf_remaining_bytes_; | 76 int read_buf_remaining_bytes_; |
| 76 bool error_; | 77 bool error_; |
| 77 bool headers_set_; | 78 bool headers_set_; |
| 78 bool byte_range_set_; | 79 bool byte_range_set_; |
| 79 net::HttpByteRange byte_range_; | 80 net::HttpByteRange byte_range_; |
| 80 scoped_ptr<net::HttpResponseInfo> response_info_; | 81 scoped_ptr<net::HttpResponseInfo> response_info_; |
| 82 ScopedRunnableMethodFactory<BlobURLRequestJob> method_factory_; |
| 81 | 83 |
| 82 DISALLOW_COPY_AND_ASSIGN(BlobURLRequestJob); | 84 DISALLOW_COPY_AND_ASSIGN(BlobURLRequestJob); |
| 83 }; | 85 }; |
| 84 | 86 |
| 85 } // namespace webkit_blob | 87 } // namespace webkit_blob |
| 86 | 88 |
| 87 #endif // WEBKIT_BLOB_BLOB_URL_REQUEST_JOB_H_ | 89 #endif // WEBKIT_BLOB_BLOB_URL_REQUEST_JOB_H_ |
| OLD | NEW |