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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 int64_t GetTotalReceivedBytes() const override; | 73 int64_t GetTotalReceivedBytes() const override; |
74 // Total number of bytes sent over the network of SPDY frames associated with | 74 // Total number of bytes sent over the network of SPDY frames associated with |
75 // this stream, including the size of frame headers, before SSL encryption and | 75 // this stream, including the size of frame headers, before SSL encryption and |
76 // not including proxy overhead. Note that some SPDY frames such as pings are | 76 // not including proxy overhead. Note that some SPDY frames such as pings are |
77 // not associated with any stream, and are not included in this value. | 77 // not associated with any stream, and are not included in this value. |
78 int64_t GetTotalSentBytes() const override; | 78 int64_t GetTotalSentBytes() const override; |
79 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; | 79 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; |
80 void GetSSLInfo(SSLInfo* ssl_info) override; | 80 void GetSSLInfo(SSLInfo* ssl_info) override; |
81 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; | 81 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; |
82 bool GetRemoteEndpoint(IPEndPoint* endpoint) override; | 82 bool GetRemoteEndpoint(IPEndPoint* endpoint) override; |
83 Error GetSignedEKMForTokenBinding(crypto::ECPrivateKey* key, | 83 Error GetTokenBindingSignature(crypto::ECPrivateKey* key, |
84 std::vector<uint8_t>* out) override; | 84 TokenBindingType tb_type, |
| 85 std::vector<uint8_t>* out) override; |
85 void Drain(HttpNetworkSession* session) override; | 86 void Drain(HttpNetworkSession* session) override; |
86 void PopulateNetErrorDetails(NetErrorDetails* details) override; | 87 void PopulateNetErrorDetails(NetErrorDetails* details) override; |
87 void SetPriority(RequestPriority priority) override; | 88 void SetPriority(RequestPriority priority) override; |
88 | 89 |
89 // SpdyStream::Delegate implementation. | 90 // SpdyStream::Delegate implementation. |
90 void OnRequestHeadersSent() override; | 91 void OnRequestHeadersSent() override; |
91 SpdyResponseHeadersStatus OnResponseHeadersUpdated( | 92 SpdyResponseHeadersStatus OnResponseHeadersUpdated( |
92 const SpdyHeaderBlock& response_headers) override; | 93 const SpdyHeaderBlock& response_headers) override; |
93 void OnDataReceived(std::unique_ptr<SpdyBuffer> buffer) override; | 94 void OnDataReceived(std::unique_ptr<SpdyBuffer> buffer) override; |
94 void OnDataSent() override; | 95 void OnDataSent() override; |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 NextProto negotiated_protocol_; | 198 NextProto negotiated_protocol_; |
198 | 199 |
199 base::WeakPtrFactory<SpdyHttpStream> weak_factory_; | 200 base::WeakPtrFactory<SpdyHttpStream> weak_factory_; |
200 | 201 |
201 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); | 202 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); |
202 }; | 203 }; |
203 | 204 |
204 } // namespace net | 205 } // namespace net |
205 | 206 |
206 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ | 207 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ |
OLD | NEW |