| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Error GetSignedEKMForTokenBinding(crypto::ECPrivateKey* key, | 79 Error GetSignedEKMForTokenBinding(crypto::ECPrivateKey* key, |
| 80 std::vector<uint8_t>* out) override; | 80 std::vector<uint8_t>* out) override; |
| 81 | 81 |
| 82 void Drain(HttpNetworkSession* session) override; | 82 void Drain(HttpNetworkSession* session, |
| 83 scoped_ptr<HttpResponseInfo> response_info) override; |
| 83 | 84 |
| 84 void PopulateNetErrorDetails(NetErrorDetails* details) override; | 85 void PopulateNetErrorDetails(NetErrorDetails* details) override; |
| 85 | 86 |
| 86 void SetPriority(RequestPriority priority) override; | 87 void SetPriority(RequestPriority priority) override; |
| 87 | 88 |
| 88 private: | 89 private: |
| 89 HttpStreamParser* parser() const { return state_.parser(); } | 90 HttpStreamParser* parser() const { return state_.parser(); } |
| 90 | 91 |
| 91 HttpBasicState state_; | 92 HttpBasicState state_; |
| 92 | 93 |
| 93 DISALLOW_COPY_AND_ASSIGN(HttpBasicStream); | 94 DISALLOW_COPY_AND_ASSIGN(HttpBasicStream); |
| 94 }; | 95 }; |
| 95 | 96 |
| 96 } // namespace net | 97 } // namespace net |
| 97 | 98 |
| 98 #endif // NET_HTTP_HTTP_BASIC_STREAM_H_ | 99 #endif // NET_HTTP_HTTP_BASIC_STREAM_H_ |
| OLD | NEW |