OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
74 | 74 |
75 virtual bool IsConnectionReusable() const OVERRIDE; | 75 virtual bool IsConnectionReusable() const OVERRIDE; |
76 | 76 |
77 virtual void GetSSLInfo(SSLInfo* ssl_info) OVERRIDE; | 77 virtual void GetSSLInfo(SSLInfo* ssl_info) OVERRIDE; |
78 | 78 |
79 virtual void GetSSLCertRequestInfo( | 79 virtual void GetSSLCertRequestInfo( |
80 SSLCertRequestInfo* cert_request_info) OVERRIDE; | 80 SSLCertRequestInfo* cert_request_info) OVERRIDE; |
81 | 81 |
82 virtual bool IsSpdyHttpStream() const OVERRIDE; | 82 virtual bool IsSpdyHttpStream() const OVERRIDE; |
83 | 83 |
84 virtual double GetRTTMs() const OVERRIDE; | |
willchan no longer on Chromium
2011/06/06 10:57:36
When I first read this, I was wondering what a RTT
Gagan
2011/06/06 20:27:10
Done.
| |
85 | |
86 virtual int GetBytesReceived() const OVERRIDE; | |
87 | |
84 private: | 88 private: |
85 scoped_refptr<GrowableIOBuffer> read_buf_; | 89 scoped_refptr<GrowableIOBuffer> read_buf_; |
86 | 90 |
87 scoped_ptr<HttpStreamParser> parser_; | 91 scoped_ptr<HttpStreamParser> parser_; |
88 | 92 |
89 scoped_ptr<ClientSocketHandle> connection_; | 93 scoped_ptr<ClientSocketHandle> connection_; |
90 | 94 |
91 bool using_proxy_; | 95 bool using_proxy_; |
92 | 96 |
93 std::string request_line_; | 97 std::string request_line_; |
94 | 98 |
95 const HttpRequestInfo* request_info_; | 99 const HttpRequestInfo* request_info_; |
96 | 100 |
101 int bytes_read_offset_; | |
102 | |
97 DISALLOW_COPY_AND_ASSIGN(HttpBasicStream); | 103 DISALLOW_COPY_AND_ASSIGN(HttpBasicStream); |
98 }; | 104 }; |
99 | 105 |
100 } // namespace net | 106 } // namespace net |
101 | 107 |
102 #endif // NET_HTTP_HTTP_BASIC_STREAM_H_ | 108 #endif // NET_HTTP_HTTP_BASIC_STREAM_H_ |
OLD | NEW |