Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(230)

Side by Side Diff: net/http/http_basic_stream.h

Issue 6990036: Deciding best connection to schedule requests on based on cwnd and idle time (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: connect_time_micros_ Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 void LogNumRttVsBytesMetrics() const OVERRIDE;
85
86 static void set_warm_connection_field_trial_group(const std::string& group) {
87 g_warm_connection_field_trial_group_ = group;
88 }
89
84 private: 90 private:
85 scoped_refptr<GrowableIOBuffer> read_buf_; 91 scoped_refptr<GrowableIOBuffer> read_buf_;
86 92
87 scoped_ptr<HttpStreamParser> parser_; 93 scoped_ptr<HttpStreamParser> parser_;
88 94
89 scoped_ptr<ClientSocketHandle> connection_; 95 scoped_ptr<ClientSocketHandle> connection_;
90 96
91 bool using_proxy_; 97 bool using_proxy_;
92 98
93 std::string request_line_; 99 std::string request_line_;
94 100
95 const HttpRequestInfo* request_info_; 101 const HttpRequestInfo* request_info_;
96 102
103 const HttpResponseInfo* response_;
104
105 int64 bytes_read_offset_;
106
107 static std::string g_warm_connection_field_trial_group_;
108
97 DISALLOW_COPY_AND_ASSIGN(HttpBasicStream); 109 DISALLOW_COPY_AND_ASSIGN(HttpBasicStream);
98 }; 110 };
99 111
100 } // namespace net 112 } // namespace net
101 113
102 #endif // NET_HTTP_HTTP_BASIC_STREAM_H_ 114 #endif // NET_HTTP_HTTP_BASIC_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698