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

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

Issue 7827033: Introduce net::HttpServerPropertiesManager to manage server-specific properties. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef NET_HTTP_HTTP_SERVER_PROPERTIES_H_
6 #define NET_HTTP_HTTP_SERVER_PROPERTIES_H_
7
8 #include <string>
9 #include <vector>
10
11 #include "base/basictypes.h"
12 #include "net/base/host_port_pair.h"
13 #include "net/base/net_export.h"
14
15 namespace net {
16
17 // The interface for setting/retrieving the HTTP server properties.
18 class NET_EXPORT HttpServerProperties {
19 public:
20 HttpServerProperties();
21 virtual ~HttpServerProperties();
22
23 // Returns true if |server| supports SPDY.
24 virtual bool SupportsSpdy(const HostPortPair& server) const = 0;
25
26 // Add |server| into the persistent store. Should only be called from IO
27 // thread.
28 virtual void SetSupportsSpdy(const HostPortPair& server,
29 bool support_spdy) = 0;
30
31 protected:
32 typedef std::vector<std::string> StringVector;
33
34 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties);
willchan no longer on Chromium 2011/10/04 05:55:02 This should be private.
ramant (doing other things) 2011/10/06 06:17:52 Done.
35 };
36
37 } // namespace net
38
39 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698