| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_CRONET_ANDROID_URL_REQUEST_ADAPTER_H_ | 5 #ifndef COMPONENTS_CRONET_ANDROID_URL_REQUEST_ADAPTER_H_ |
| 6 #define COMPONENTS_CRONET_ANDROID_URL_REQUEST_ADAPTER_H_ | 6 #define COMPONENTS_CRONET_ANDROID_URL_REQUEST_ADAPTER_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 bool is_last_chunk); | 128 bool is_last_chunk); |
| 129 | 129 |
| 130 void Read(); | 130 void Read(); |
| 131 | 131 |
| 132 URLRequestContextAdapter* context_; | 132 URLRequestContextAdapter* context_; |
| 133 scoped_refptr<URLRequestAdapterDelegate> delegate_; | 133 scoped_refptr<URLRequestAdapterDelegate> delegate_; |
| 134 GURL url_; | 134 GURL url_; |
| 135 net::RequestPriority priority_; | 135 net::RequestPriority priority_; |
| 136 std::string method_; | 136 std::string method_; |
| 137 net::HttpRequestHeaders headers_; | 137 net::HttpRequestHeaders headers_; |
| 138 net::URLRequest* url_request_; | 138 scoped_ptr<net::URLRequest> url_request_; |
| 139 scoped_ptr<net::UploadDataStream> upload_data_stream_; | 139 scoped_ptr<net::UploadDataStream> upload_data_stream_; |
| 140 scoped_refptr<net::GrowableIOBuffer> read_buffer_; | 140 scoped_refptr<net::GrowableIOBuffer> read_buffer_; |
| 141 int bytes_read_; | 141 int bytes_read_; |
| 142 int total_bytes_read_; | 142 int total_bytes_read_; |
| 143 int error_code_; | 143 int error_code_; |
| 144 int http_status_code_; | 144 int http_status_code_; |
| 145 std::string content_type_; | 145 std::string content_type_; |
| 146 bool canceled_; | 146 bool canceled_; |
| 147 int64 expected_size_; | 147 int64 expected_size_; |
| 148 bool chunked_upload_; | 148 bool chunked_upload_; |
| 149 | 149 |
| 150 DISALLOW_COPY_AND_ASSIGN(URLRequestAdapter); | 150 DISALLOW_COPY_AND_ASSIGN(URLRequestAdapter); |
| 151 }; | 151 }; |
| 152 | 152 |
| 153 } // namespace cronet | 153 } // namespace cronet |
| 154 | 154 |
| 155 #endif // COMPONENTS_CRONET_ANDROID_URL_REQUEST_ADAPTER_H_ | 155 #endif // COMPONENTS_CRONET_ANDROID_URL_REQUEST_ADAPTER_H_ |
| OLD | NEW |