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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 int ReadResponseHeaders(int pipeline_id, | 107 int ReadResponseHeaders(int pipeline_id, |
108 const CompletionCallback& callback); | 108 const CompletionCallback& callback); |
109 | 109 |
110 int ReadResponseBody(int pipeline_id, | 110 int ReadResponseBody(int pipeline_id, |
111 IOBuffer* buf, int buf_len, | 111 IOBuffer* buf, int buf_len, |
112 const CompletionCallback& callback); | 112 const CompletionCallback& callback); |
113 | 113 |
114 void Close(int pipeline_id, | 114 void Close(int pipeline_id, |
115 bool not_reusable); | 115 bool not_reusable); |
116 | 116 |
117 uint64 GetUploadProgress(int pipeline_id) const; | 117 UploadProgress GetUploadProgress(int pipeline_id) const; |
118 | 118 |
119 HttpResponseInfo* GetResponseInfo(int pipeline_id); | 119 HttpResponseInfo* GetResponseInfo(int pipeline_id); |
120 | 120 |
121 bool IsResponseBodyComplete(int pipeline_id) const; | 121 bool IsResponseBodyComplete(int pipeline_id) const; |
122 | 122 |
123 bool CanFindEndOfResponse(int pipeline_id) const; | 123 bool CanFindEndOfResponse(int pipeline_id) const; |
124 | 124 |
125 bool IsMoreDataBuffered(int pipeline_id) const; | 125 bool IsMoreDataBuffered(int pipeline_id) const; |
126 | 126 |
127 bool IsConnectionReused(int pipeline_id) const; | 127 bool IsConnectionReused(int pipeline_id) const; |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 ReadHeadersState read_next_state_; | 321 ReadHeadersState read_next_state_; |
322 int active_read_id_; | 322 int active_read_id_; |
323 bool read_still_on_call_stack_; | 323 bool read_still_on_call_stack_; |
324 | 324 |
325 DISALLOW_COPY_AND_ASSIGN(HttpPipelinedConnectionImpl); | 325 DISALLOW_COPY_AND_ASSIGN(HttpPipelinedConnectionImpl); |
326 }; | 326 }; |
327 | 327 |
328 } // namespace net | 328 } // namespace net |
329 | 329 |
330 #endif // NET_HTTP_HTTP_PIPELINED_CONNECTION_IMPL_H_ | 330 #endif // NET_HTTP_HTTP_PIPELINED_CONNECTION_IMPL_H_ |
OLD | NEW |