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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 int64_t GetTotalSentBytes() const override; | 69 int64_t GetTotalSentBytes() const override; |
70 | 70 |
71 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; | 71 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; |
72 | 72 |
73 void GetSSLInfo(SSLInfo* ssl_info) override; | 73 void GetSSLInfo(SSLInfo* ssl_info) override; |
74 | 74 |
75 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; | 75 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; |
76 | 76 |
77 bool GetRemoteEndpoint(IPEndPoint* endpoint) override; | 77 bool GetRemoteEndpoint(IPEndPoint* endpoint) override; |
78 | 78 |
| 79 int GetTokenBindingMessageHeader(std::string* out) override; |
| 80 |
79 void Drain(HttpNetworkSession* session) override; | 81 void Drain(HttpNetworkSession* session) override; |
80 | 82 |
81 void SetPriority(RequestPriority priority) override; | 83 void SetPriority(RequestPriority priority) override; |
82 | 84 |
83 private: | 85 private: |
84 HttpStreamParser* parser() const { return state_.parser(); } | 86 HttpStreamParser* parser() const { return state_.parser(); } |
85 | 87 |
86 HttpBasicState state_; | 88 HttpBasicState state_; |
87 | 89 |
88 DISALLOW_COPY_AND_ASSIGN(HttpBasicStream); | 90 DISALLOW_COPY_AND_ASSIGN(HttpBasicStream); |
89 }; | 91 }; |
90 | 92 |
91 } // namespace net | 93 } // namespace net |
92 | 94 |
93 #endif // NET_HTTP_HTTP_BASIC_STREAM_H_ | 95 #endif // NET_HTTP_HTTP_BASIC_STREAM_H_ |
OLD | NEW |