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_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> | 8 #include <stdint.h> |
9 | 9 |
10 #include <list> | 10 #include <list> |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 int64_t GetTotalReceivedBytes() const override; | 72 int64_t GetTotalReceivedBytes() const override; |
73 // Total number of bytes sent over the network of SPDY frames associated with | 73 // Total number of bytes sent over the network of SPDY frames associated with |
74 // this stream, including the size of frame headers, before SSL encryption and | 74 // this stream, including the size of frame headers, before SSL encryption and |
75 // not including proxy overhead. Note that some SPDY frames such as pings are | 75 // not including proxy overhead. Note that some SPDY frames such as pings are |
76 // not associated with any stream, and are not included in this value. | 76 // not associated with any stream, and are not included in this value. |
77 int64_t GetTotalSentBytes() const override; | 77 int64_t GetTotalSentBytes() const override; |
78 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; | 78 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; |
79 void GetSSLInfo(SSLInfo* ssl_info) override; | 79 void GetSSLInfo(SSLInfo* ssl_info) override; |
80 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; | 80 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; |
81 bool GetRemoteEndpoint(IPEndPoint* endpoint) override; | 81 bool GetRemoteEndpoint(IPEndPoint* endpoint) override; |
| 82 int GetTokenBindingMessageHeader(std::string* out) override; |
82 void Drain(HttpNetworkSession* session) override; | 83 void Drain(HttpNetworkSession* session) override; |
83 void SetPriority(RequestPriority priority) override; | 84 void SetPriority(RequestPriority priority) override; |
84 | 85 |
85 // SpdyStream::Delegate implementation. | 86 // SpdyStream::Delegate implementation. |
86 void OnRequestHeadersSent() override; | 87 void OnRequestHeadersSent() override; |
87 SpdyResponseHeadersStatus OnResponseHeadersUpdated( | 88 SpdyResponseHeadersStatus OnResponseHeadersUpdated( |
88 const SpdyHeaderBlock& response_headers) override; | 89 const SpdyHeaderBlock& response_headers) override; |
89 void OnDataReceived(scoped_ptr<SpdyBuffer> buffer) override; | 90 void OnDataReceived(scoped_ptr<SpdyBuffer> buffer) override; |
90 void OnDataSent() override; | 91 void OnDataSent() override; |
91 void OnTrailers(const SpdyHeaderBlock& trailers) override; | 92 void OnTrailers(const SpdyHeaderBlock& trailers) override; |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 bool direct_; | 173 bool direct_; |
173 | 174 |
174 base::WeakPtrFactory<SpdyHttpStream> weak_factory_; | 175 base::WeakPtrFactory<SpdyHttpStream> weak_factory_; |
175 | 176 |
176 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); | 177 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); |
177 }; | 178 }; |
178 | 179 |
179 } // namespace net | 180 } // namespace net |
180 | 181 |
181 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ | 182 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ |
OLD | NEW |