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

Side by Side Diff: net/spdy/spdy_http_stream.h

Issue 1314783007: Added and implemented HttpStream::GetTotalSentBytes for basic streams. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased on master Created 5 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
« no previous file with comments | « net/socket/socket_test_util.cc ('k') | net/spdy/spdy_http_stream.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_SPDY_SPDY_HTTP_STREAM_H_ 5 #ifndef NET_SPDY_SPDY_HTTP_STREAM_H_
6 #define NET_SPDY_SPDY_HTTP_STREAM_H_ 6 #define NET_SPDY_SPDY_HTTP_STREAM_H_
7 7
8 #include <stdint.h>
9
8 #include <list> 10 #include <list>
9 11
10 #include "base/basictypes.h" 12 #include "base/basictypes.h"
11 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
12 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
13 #include "net/base/completion_callback.h" 15 #include "net/base/completion_callback.h"
14 #include "net/http/http_stream.h" 16 #include "net/http/http_stream.h"
15 #include "net/log/net_log.h" 17 #include "net/log/net_log.h"
16 #include "net/spdy/spdy_read_queue.h" 18 #include "net/spdy/spdy_read_queue.h"
17 #include "net/spdy/spdy_session.h" 19 #include "net/spdy/spdy_session.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 HttpStream* RenewStreamForAuth() override; 60 HttpStream* RenewStreamForAuth() override;
59 bool IsResponseBodyComplete() const override; 61 bool IsResponseBodyComplete() const override;
60 62
61 // Must not be called if a NULL SpdySession was pssed into the 63 // Must not be called if a NULL SpdySession was pssed into the
62 // constructor. 64 // constructor.
63 bool IsConnectionReused() const override; 65 bool IsConnectionReused() const override;
64 66
65 void SetConnectionReused() override; 67 void SetConnectionReused() override;
66 bool CanReuseConnection() const override; 68 bool CanReuseConnection() const override;
67 int64 GetTotalReceivedBytes() const override; 69 int64 GetTotalReceivedBytes() const override;
70 int64_t GetTotalSentBytes() const override;
68 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; 71 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override;
69 void GetSSLInfo(SSLInfo* ssl_info) override; 72 void GetSSLInfo(SSLInfo* ssl_info) override;
70 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; 73 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override;
71 void Drain(HttpNetworkSession* session) override; 74 void Drain(HttpNetworkSession* session) override;
72 void SetPriority(RequestPriority priority) override; 75 void SetPriority(RequestPriority priority) override;
73 76
74 // SpdyStream::Delegate implementation. 77 // SpdyStream::Delegate implementation.
75 void OnRequestHeadersSent() override; 78 void OnRequestHeadersSent() override;
76 SpdyResponseHeadersStatus OnResponseHeadersUpdated( 79 SpdyResponseHeadersStatus OnResponseHeadersUpdated(
77 const SpdyHeaderBlock& response_headers) override; 80 const SpdyHeaderBlock& response_headers) override;
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 bool direct_; 159 bool direct_;
157 160
158 base::WeakPtrFactory<SpdyHttpStream> weak_factory_; 161 base::WeakPtrFactory<SpdyHttpStream> weak_factory_;
159 162
160 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); 163 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream);
161 }; 164 };
162 165
163 } // namespace net 166 } // namespace net
164 167
165 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ 168 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_
OLDNEW
« no previous file with comments | « net/socket/socket_test_util.cc ('k') | net/spdy/spdy_http_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698