Chromium Code Reviews| Index: net/http/http_server_properties.h |
| =================================================================== |
| --- net/http/http_server_properties.h (revision 0) |
| +++ net/http/http_server_properties.h (revision 0) |
| @@ -0,0 +1,39 @@ |
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef NET_HTTP_HTTP_SERVER_PROPERTIES_H_ |
| +#define NET_HTTP_HTTP_SERVER_PROPERTIES_H_ |
| + |
| +#include <string> |
| +#include <vector> |
| + |
| +#include "base/basictypes.h" |
| +#include "net/base/host_port_pair.h" |
| +#include "net/base/net_export.h" |
| + |
| +namespace net { |
| + |
| +// The interface for setting/retrieving the HTTP server properties. |
| +class NET_EXPORT HttpServerProperties { |
| + public: |
| + HttpServerProperties(); |
| + virtual ~HttpServerProperties(); |
| + |
| + // Returns true if |server| supports SPDY. |
| + virtual bool SupportsSpdy(const HostPortPair& server) const = 0; |
| + |
| + // Add |server| into the persistent store. Should only be called from IO |
| + // thread. |
| + virtual void SetSupportsSpdy(const HostPortPair& server, |
| + bool support_spdy) = 0; |
| + |
| + protected: |
| + typedef std::vector<std::string> StringVector; |
| + |
| + 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.
|
| +}; |
| + |
| +} // namespace net |
| + |
| +#endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ |