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

Unified 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698