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

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
« no previous file with comments | « net/http/http_network_session.cc ('k') | net/http/http_server_properties_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 typedef std::vector<std::string> StringVector;
21
22 HttpServerProperties() {}
23 virtual ~HttpServerProperties() {}
24
25 // Returns true if |server| supports SPDY.
26 virtual bool SupportsSpdy(const HostPortPair& server) const = 0;
27
28 // Add |server| into the persistent store. Should only be called from IO
29 // thread.
30 virtual void SetSupportsSpdy(const HostPortPair& server,
31 bool support_spdy) = 0;
32
33 // Deletes all data.
34 virtual void DeleteAll() = 0;
35
36 private:
37 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties);
38 };
39
40 } // namespace net
41
42 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_
OLDNEW
« no previous file with comments | « net/http/http_network_session.cc ('k') | net/http/http_server_properties_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698