Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1361)

Side by Side Diff: net/http/http_pipelined_connection_impl.h

Issue 10834178: net: Return size of upload as well as position from HttpTransaction::GetUploadProgress() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: _ Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698