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

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

Issue 2286373002: Make clear SupportsRequestPriority() also implies connection sharing. (Closed)
Patch Set: Make comment on SupportsRequestPriority more specific. Created 4 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 class NET_EXPORT HttpServerProperties { 227 class NET_EXPORT HttpServerProperties {
228 public: 228 public:
229 HttpServerProperties() {} 229 HttpServerProperties() {}
230 virtual ~HttpServerProperties() {} 230 virtual ~HttpServerProperties() {}
231 231
232 // Deletes all data. 232 // Deletes all data.
233 virtual void Clear() = 0; 233 virtual void Clear() = 0;
234 234
235 // Returns true if |server| supports a network protocol which honors 235 // Returns true if |server| supports a network protocol which honors
236 // request prioritization. 236 // request prioritization.
237 // Note that this also implies that the server supports request
238 // multiplexing, since priorities imply a relationship between
239 // multiple requests.
237 virtual bool SupportsRequestPriority(const url::SchemeHostPort& server) = 0; 240 virtual bool SupportsRequestPriority(const url::SchemeHostPort& server) = 0;
238 241
239 // Returns the value set by SetSupportsSpdy(). If not set, returns false. 242 // Returns the value set by SetSupportsSpdy(). If not set, returns false.
240 virtual bool GetSupportsSpdy(const url::SchemeHostPort& server) = 0; 243 virtual bool GetSupportsSpdy(const url::SchemeHostPort& server) = 0;
241 244
242 // Add |server| into the persistent store. Should only be called from IO 245 // Add |server| into the persistent store. Should only be called from IO
243 // thread. 246 // thread.
244 virtual void SetSupportsSpdy(const url::SchemeHostPort& server, 247 virtual void SetSupportsSpdy(const url::SchemeHostPort& server,
245 bool support_spdy) = 0; 248 bool support_spdy) = 0;
246 249
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 virtual void SetMaxServerConfigsStoredInProperties( 373 virtual void SetMaxServerConfigsStoredInProperties(
371 size_t max_server_configs_stored_in_properties) = 0; 374 size_t max_server_configs_stored_in_properties) = 0;
372 375
373 private: 376 private:
374 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); 377 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties);
375 }; 378 };
376 379
377 } // namespace net 380 } // namespace net
378 381
379 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ 382 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698