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

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

Issue 893693002: Fix bug where requests to QUIC servers were throttled by the resource scheduler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 5 years, 10 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
OLDNEW
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 #ifndef NET_HTTP_HTTP_SERVER_PROPERTIES_H_ 5 #ifndef NET_HTTP_HTTP_SERVER_PROPERTIES_H_
6 #define NET_HTTP_HTTP_SERVER_PROPERTIES_H_ 6 #define NET_HTTP_HTTP_SERVER_PROPERTIES_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 public: 155 public:
156 HttpServerProperties() {} 156 HttpServerProperties() {}
157 virtual ~HttpServerProperties() {} 157 virtual ~HttpServerProperties() {}
158 158
159 // Gets a weak pointer for this object. 159 // Gets a weak pointer for this object.
160 virtual base::WeakPtr<HttpServerProperties> GetWeakPtr() = 0; 160 virtual base::WeakPtr<HttpServerProperties> GetWeakPtr() = 0;
161 161
162 // Deletes all data. 162 // Deletes all data.
163 virtual void Clear() = 0; 163 virtual void Clear() = 0;
164 164
165 // Returns true if |server| supports SPDY. 165 // Returns true if |server| supports a network protocol which honors
166 virtual bool SupportsSpdy(const HostPortPair& server) = 0; 166 // request prioritization.
167 virtual bool SupportsRequestPriority(const HostPortPair& server) = 0;
167 168
168 // Add |server| into the persistent store. Should only be called from IO 169 // Add |server| into the persistent store. Should only be called from IO
169 // thread. 170 // thread.
170 virtual void SetSupportsSpdy(const HostPortPair& server, 171 virtual void SetSupportsSpdy(const HostPortPair& server,
171 bool support_spdy) = 0; 172 bool support_spdy) = 0;
172 173
173 // Returns true if |server| has required HTTP/1.1 via HTTP/2 error code. 174 // Returns true if |server| has required HTTP/1.1 via HTTP/2 error code.
174 virtual bool RequiresHTTP11(const HostPortPair& server) = 0; 175 virtual bool RequiresHTTP11(const HostPortPair& server) = 0;
175 176
176 // Require HTTP/1.1 on subsequent connections. Not persisted. 177 // Require HTTP/1.1 on subsequent connections. Not persisted.
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 261
261 virtual const ServerNetworkStatsMap& server_network_stats_map() const = 0; 262 virtual const ServerNetworkStatsMap& server_network_stats_map() const = 0;
262 263
263 private: 264 private:
264 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); 265 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties);
265 }; 266 };
266 267
267 } // namespace net 268 } // namespace net
268 269
269 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ 270 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698