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

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: Addressed mmenke comments 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
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 bool IsResponseBodyComplete() const override; 61 bool IsResponseBodyComplete() const override;
60 bool CanFindEndOfResponse() const override; 62 bool CanFindEndOfResponse() const override;
61 63
62 // Must not be called if a NULL SpdySession was pssed into the 64 // Must not be called if a NULL SpdySession was pssed into the
63 // constructor. 65 // constructor.
64 bool IsConnectionReused() const override; 66 bool IsConnectionReused() const override;
65 67
66 void SetConnectionReused() override; 68 void SetConnectionReused() override;
67 bool IsConnectionReusable() const override; 69 bool IsConnectionReusable() const override;
68 int64 GetTotalReceivedBytes() const override; 70 int64 GetTotalReceivedBytes() const override;
71 int64_t GetTotalSentBytes() const override;
69 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; 72 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override;
70 void GetSSLInfo(SSLInfo* ssl_info) override; 73 void GetSSLInfo(SSLInfo* ssl_info) override;
71 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; 74 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override;
72 bool IsSpdyHttpStream() const override; 75 bool IsSpdyHttpStream() const override;
73 void Drain(HttpNetworkSession* session) override; 76 void Drain(HttpNetworkSession* session) override;
74 void SetPriority(RequestPriority priority) override; 77 void SetPriority(RequestPriority priority) override;
75 78
76 // SpdyStream::Delegate implementation. 79 // SpdyStream::Delegate implementation.
77 void OnRequestHeadersSent() override; 80 void OnRequestHeadersSent() override;
78 SpdyResponseHeadersStatus OnResponseHeadersUpdated( 81 SpdyResponseHeadersStatus OnResponseHeadersUpdated(
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 bool direct_; 161 bool direct_;
159 162
160 base::WeakPtrFactory<SpdyHttpStream> weak_factory_; 163 base::WeakPtrFactory<SpdyHttpStream> weak_factory_;
161 164
162 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); 165 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream);
163 }; 166 };
164 167
165 } // namespace net 168 } // namespace net
166 169
167 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ 170 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698