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 // HttpBasicStream is a simple implementation of HttpStream. It assumes it is | 5 // HttpBasicStream is a simple implementation of HttpStream. It assumes it is |
6 // not sharing a sharing with any other HttpStreams, therefore it just reads and | 6 // not sharing a sharing with any other HttpStreams, therefore it just reads and |
7 // writes directly to the Http Stream. | 7 // writes directly to the Http Stream. |
8 | 8 |
9 #ifndef NET_HTTP_HTTP_BASIC_STREAM_H_ | 9 #ifndef NET_HTTP_HTTP_BASIC_STREAM_H_ |
10 #define NET_HTTP_HTTP_BASIC_STREAM_H_ | 10 #define NET_HTTP_HTTP_BASIC_STREAM_H_ |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 int64_t GetTotalSentBytes() const override; | 71 int64_t GetTotalSentBytes() const override; |
72 | 72 |
73 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; | 73 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; |
74 | 74 |
75 void GetSSLInfo(SSLInfo* ssl_info) override; | 75 void GetSSLInfo(SSLInfo* ssl_info) override; |
76 | 76 |
77 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; | 77 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; |
78 | 78 |
79 bool GetRemoteEndpoint(IPEndPoint* endpoint) override; | 79 bool GetRemoteEndpoint(IPEndPoint* endpoint) override; |
80 | 80 |
81 Error GetSignedEKMForTokenBinding(crypto::ECPrivateKey* key, | 81 Error GetTokenBindingSignature(crypto::ECPrivateKey* key, |
82 std::vector<uint8_t>* out) override; | 82 TokenBindingType tb_type, |
| 83 std::vector<uint8_t>* out) override; |
83 | 84 |
84 void Drain(HttpNetworkSession* session) override; | 85 void Drain(HttpNetworkSession* session) override; |
85 | 86 |
86 void PopulateNetErrorDetails(NetErrorDetails* details) override; | 87 void PopulateNetErrorDetails(NetErrorDetails* details) override; |
87 | 88 |
88 void SetPriority(RequestPriority priority) override; | 89 void SetPriority(RequestPriority priority) override; |
89 | 90 |
90 private: | 91 private: |
91 HttpStreamParser* parser() const { return state_.parser(); } | 92 HttpStreamParser* parser() const { return state_.parser(); } |
92 | 93 |
93 HttpBasicState state_; | 94 HttpBasicState state_; |
94 | 95 |
95 DISALLOW_COPY_AND_ASSIGN(HttpBasicStream); | 96 DISALLOW_COPY_AND_ASSIGN(HttpBasicStream); |
96 }; | 97 }; |
97 | 98 |
98 } // namespace net | 99 } // namespace net |
99 | 100 |
100 #endif // NET_HTTP_HTTP_BASIC_STREAM_H_ | 101 #endif // NET_HTTP_HTTP_BASIC_STREAM_H_ |
OLD | NEW |