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

Side by Side Diff: net/http/http_pipelined_stream.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: Make UploadProgress a class instead of a struct Created 8 years, 3 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_STREAM_H_ 5 #ifndef NET_HTTP_HTTP_PIPELINED_STREAM_H_
6 #define NET_HTTP_HTTP_PIPELINED_STREAM_H_ 6 #define NET_HTTP_HTTP_PIPELINED_STREAM_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 29 matching lines...) Expand all
40 // HttpStream methods: 40 // HttpStream methods:
41 virtual int InitializeStream(const HttpRequestInfo* request_info, 41 virtual int InitializeStream(const HttpRequestInfo* request_info,
42 const BoundNetLog& net_log, 42 const BoundNetLog& net_log,
43 const CompletionCallback& callback) OVERRIDE; 43 const CompletionCallback& callback) OVERRIDE;
44 44
45 virtual int SendRequest(const HttpRequestHeaders& headers, 45 virtual int SendRequest(const HttpRequestHeaders& headers,
46 scoped_ptr<UploadDataStream> request_body, 46 scoped_ptr<UploadDataStream> request_body,
47 HttpResponseInfo* response, 47 HttpResponseInfo* response,
48 const CompletionCallback& callback) OVERRIDE; 48 const CompletionCallback& callback) OVERRIDE;
49 49
50 virtual uint64 GetUploadProgress() const OVERRIDE; 50 virtual UploadProgress GetUploadProgress() const OVERRIDE;
51 51
52 virtual int ReadResponseHeaders(const CompletionCallback& callback) OVERRIDE; 52 virtual int ReadResponseHeaders(const CompletionCallback& callback) OVERRIDE;
53 53
54 virtual const HttpResponseInfo* GetResponseInfo() const OVERRIDE; 54 virtual const HttpResponseInfo* GetResponseInfo() const OVERRIDE;
55 55
56 virtual int ReadResponseBody(IOBuffer* buf, int buf_len, 56 virtual int ReadResponseBody(IOBuffer* buf, int buf_len,
57 const CompletionCallback& callback) OVERRIDE; 57 const CompletionCallback& callback) OVERRIDE;
58 58
59 virtual void Close(bool not_reusable) OVERRIDE; 59 virtual void Close(bool not_reusable) OVERRIDE;
60 60
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 int pipeline_id_; 104 int pipeline_id_;
105 105
106 const HttpRequestInfo* request_info_; 106 const HttpRequestInfo* request_info_;
107 107
108 DISALLOW_COPY_AND_ASSIGN(HttpPipelinedStream); 108 DISALLOW_COPY_AND_ASSIGN(HttpPipelinedStream);
109 }; 109 };
110 110
111 } // namespace net 111 } // namespace net
112 112
113 #endif // NET_HTTP_HTTP_PIPELINED_STREAM_H_ 113 #endif // NET_HTTP_HTTP_PIPELINED_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698