| 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 GetProvidedTokenBindingWithKey( |
| 80 const scoped_ptr<crypto::ECPrivateKey>& key, |
| 81 std::string* header_out) override; |
| 82 |
| 79 void Drain(HttpNetworkSession* session) override; | 83 void Drain(HttpNetworkSession* session) override; |
| 80 | 84 |
| 81 void SetPriority(RequestPriority priority) override; | 85 void SetPriority(RequestPriority priority) override; |
| 82 | 86 |
| 83 private: | 87 private: |
| 84 HttpStreamParser* parser() const { return state_.parser(); } | 88 HttpStreamParser* parser() const { return state_.parser(); } |
| 85 | 89 |
| 86 HttpBasicState state_; | 90 HttpBasicState state_; |
| 87 | 91 |
| 88 DISALLOW_COPY_AND_ASSIGN(HttpBasicStream); | 92 DISALLOW_COPY_AND_ASSIGN(HttpBasicStream); |
| 89 }; | 93 }; |
| 90 | 94 |
| 91 } // namespace net | 95 } // namespace net |
| 92 | 96 |
| 93 #endif // NET_HTTP_HTTP_BASIC_STREAM_H_ | 97 #endif // NET_HTTP_HTTP_BASIC_STREAM_H_ |
| OLD | NEW |