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 NET_HTTP_HTTP_PIPELINED_CONNECTION_IMPL_H_ | 5 #ifndef NET_HTTP_HTTP_PIPELINED_CONNECTION_IMPL_H_ |
6 #define NET_HTTP_HTTP_PIPELINED_CONNECTION_IMPL_H_ | 6 #define NET_HTTP_HTTP_PIPELINED_CONNECTION_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <queue> | 9 #include <queue> |
10 #include <string> | 10 #include <string> |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 void InitializeParser(int pipeline_id, | 96 void InitializeParser(int pipeline_id, |
97 const HttpRequestInfo* request, | 97 const HttpRequestInfo* request, |
98 const BoundNetLog& net_log); | 98 const BoundNetLog& net_log); |
99 | 99 |
100 int SendRequest(int pipeline_id, | 100 int SendRequest(int pipeline_id, |
101 const std::string& request_line, | 101 const std::string& request_line, |
102 const HttpRequestHeaders& headers, | 102 const HttpRequestHeaders& headers, |
103 HttpResponseInfo* response, | 103 HttpResponseInfo* response, |
104 const CompletionCallback& callback); | 104 const CompletionCallback& callback); |
105 | 105 |
106 int ReadResponseHeaders(int pipeline_id, | 106 int ReadResponseHeaders(int pipeline_id, const CompletionCallback& callback); |
107 const CompletionCallback& callback); | |
108 | 107 |
109 int ReadResponseBody(int pipeline_id, | 108 int ReadResponseBody(int pipeline_id, |
110 IOBuffer* buf, int buf_len, | 109 IOBuffer* buf, |
| 110 int buf_len, |
111 const CompletionCallback& callback); | 111 const CompletionCallback& callback); |
112 | 112 |
113 void Close(int pipeline_id, | 113 void Close(int pipeline_id, bool not_reusable); |
114 bool not_reusable); | |
115 | 114 |
116 UploadProgress GetUploadProgress(int pipeline_id) const; | 115 UploadProgress GetUploadProgress(int pipeline_id) const; |
117 | 116 |
118 HttpResponseInfo* GetResponseInfo(int pipeline_id); | 117 HttpResponseInfo* GetResponseInfo(int pipeline_id); |
119 | 118 |
120 bool IsResponseBodyComplete(int pipeline_id) const; | 119 bool IsResponseBodyComplete(int pipeline_id) const; |
121 | 120 |
122 bool CanFindEndOfResponse(int pipeline_id) const; | 121 bool CanFindEndOfResponse(int pipeline_id) const; |
123 | 122 |
124 bool IsConnectionReused(int pipeline_id) const; | 123 bool IsConnectionReused(int pipeline_id) const; |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 ReadHeadersState read_next_state_; | 320 ReadHeadersState read_next_state_; |
322 int active_read_id_; | 321 int active_read_id_; |
323 bool read_still_on_call_stack_; | 322 bool read_still_on_call_stack_; |
324 | 323 |
325 DISALLOW_COPY_AND_ASSIGN(HttpPipelinedConnectionImpl); | 324 DISALLOW_COPY_AND_ASSIGN(HttpPipelinedConnectionImpl); |
326 }; | 325 }; |
327 | 326 |
328 } // namespace net | 327 } // namespace net |
329 | 328 |
330 #endif // NET_HTTP_HTTP_PIPELINED_CONNECTION_IMPL_H_ | 329 #endif // NET_HTTP_HTTP_PIPELINED_CONNECTION_IMPL_H_ |
OLD | NEW |