| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 int ReadResponseBody(IOBuffer* buf, | 49 int ReadResponseBody(IOBuffer* buf, |
| 50 int buf_len, | 50 int buf_len, |
| 51 const CompletionCallback& callback) override; | 51 const CompletionCallback& callback) override; |
| 52 | 52 |
| 53 void Close(bool not_reusable) override; | 53 void Close(bool not_reusable) override; |
| 54 | 54 |
| 55 HttpStream* RenewStreamForAuth() override; | 55 HttpStream* RenewStreamForAuth() override; |
| 56 | 56 |
| 57 bool IsResponseBodyComplete() const override; | 57 bool IsResponseBodyComplete() const override; |
| 58 | 58 |
| 59 bool CanFindEndOfResponse() const override; | |
| 60 | |
| 61 bool IsConnectionReused() const override; | 59 bool IsConnectionReused() const override; |
| 62 | 60 |
| 63 void SetConnectionReused() override; | 61 void SetConnectionReused() override; |
| 64 | 62 |
| 65 bool IsConnectionReusable() const override; | 63 bool CanReuseConnection() const override; |
| 66 | 64 |
| 67 int64 GetTotalReceivedBytes() const override; | 65 int64 GetTotalReceivedBytes() const override; |
| 68 | 66 |
| 69 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; | 67 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; |
| 70 | 68 |
| 71 void GetSSLInfo(SSLInfo* ssl_info) override; | 69 void GetSSLInfo(SSLInfo* ssl_info) override; |
| 72 | 70 |
| 73 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; | 71 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; |
| 74 | 72 |
| 75 bool IsSpdyHttpStream() const override; | |
| 76 | |
| 77 void Drain(HttpNetworkSession* session) override; | 73 void Drain(HttpNetworkSession* session) override; |
| 78 | 74 |
| 79 void SetPriority(RequestPriority priority) override; | 75 void SetPriority(RequestPriority priority) override; |
| 80 | 76 |
| 81 private: | 77 private: |
| 82 HttpStreamParser* parser() const { return state_.parser(); } | 78 HttpStreamParser* parser() const { return state_.parser(); } |
| 83 | 79 |
| 84 HttpBasicState state_; | 80 HttpBasicState state_; |
| 85 | 81 |
| 86 DISALLOW_COPY_AND_ASSIGN(HttpBasicStream); | 82 DISALLOW_COPY_AND_ASSIGN(HttpBasicStream); |
| 87 }; | 83 }; |
| 88 | 84 |
| 89 } // namespace net | 85 } // namespace net |
| 90 | 86 |
| 91 #endif // NET_HTTP_HTTP_BASIC_STREAM_H_ | 87 #endif // NET_HTTP_HTTP_BASIC_STREAM_H_ |
| OLD | NEW |