OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "base/platform_file.h" | 10 #include "base/platform_file.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 } | 24 } |
25 | 25 |
26 namespace webkit_blob { | 26 namespace webkit_blob { |
27 | 27 |
28 class LocalFileStreamReader; | 28 class LocalFileStreamReader; |
29 | 29 |
30 // A request job that handles reading blob URLs. | 30 // A request job that handles reading blob URLs. |
31 class BLOB_EXPORT BlobURLRequestJob : public net::URLRequestJob { | 31 class BLOB_EXPORT BlobURLRequestJob : public net::URLRequestJob { |
32 public: | 32 public: |
33 BlobURLRequestJob(net::URLRequest* request, | 33 BlobURLRequestJob(net::URLRequest* request, |
| 34 net::NetworkDelegate* network_delegate, |
34 BlobData* blob_data, | 35 BlobData* blob_data, |
35 base::MessageLoopProxy* resolving_message_loop_proxy); | 36 base::MessageLoopProxy* resolving_message_loop_proxy); |
36 | 37 |
37 // net::URLRequestJob methods. | 38 // net::URLRequestJob methods. |
38 virtual void Start() OVERRIDE; | 39 virtual void Start() OVERRIDE; |
39 virtual void Kill() OVERRIDE; | 40 virtual void Kill() OVERRIDE; |
40 virtual bool ReadRawData(net::IOBuffer* buf, | 41 virtual bool ReadRawData(net::IOBuffer* buf, |
41 int buf_size, | 42 int buf_size, |
42 int* bytes_read) OVERRIDE; | 43 int* bytes_read) OVERRIDE; |
43 virtual bool GetMimeType(std::string* mime_type) const OVERRIDE; | 44 virtual bool GetMimeType(std::string* mime_type) const OVERRIDE; |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 bool byte_range_set_; | 98 bool byte_range_set_; |
98 net::HttpByteRange byte_range_; | 99 net::HttpByteRange byte_range_; |
99 scoped_ptr<net::HttpResponseInfo> response_info_; | 100 scoped_ptr<net::HttpResponseInfo> response_info_; |
100 | 101 |
101 DISALLOW_COPY_AND_ASSIGN(BlobURLRequestJob); | 102 DISALLOW_COPY_AND_ASSIGN(BlobURLRequestJob); |
102 }; | 103 }; |
103 | 104 |
104 } // namespace webkit_blob | 105 } // namespace webkit_blob |
105 | 106 |
106 #endif // WEBKIT_BLOB_BLOB_URL_REQUEST_JOB_H_ | 107 #endif // WEBKIT_BLOB_BLOB_URL_REQUEST_JOB_H_ |
OLD | NEW |