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

Unified Diff: net/spdy/spdy_config_service_defaults.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, 4 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/spdy/spdy_config_service_defaults.h
===================================================================
--- net/spdy/spdy_config_service_defaults.h (revision 0)
+++ net/spdy/spdy_config_service_defaults.h (revision 0)
@@ -0,0 +1,40 @@
+// 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_BASE_SPDY_CONFIG_SERVICE_DEFAULTS_H_
+#define NET_BASE_SPDY_CONFIG_SERVICE_DEFAULTS_H_
+#pragma once
+
+#include <string>
+
+#include "net/base/net_export.h"
+#include "net/spdy/spdy_config_service.h"
+
+namespace net {
+
+// This SpdyConfigService always returns the default SpdyConfig settings. It is
+// mainly useful for unittests, or for platforms that do not have a native
+// implementation of SpdyConfigService yet.
+class NET_EXPORT SpdyConfigServiceDefaults : public SpdyConfigService {
+ public:
+ SpdyConfigServiceDefaults();
+
+ // Store default Spdy config settings in |config|.
+ virtual void GetSpdyConfig(SpdyConfig* config);
+
+ // Add |spdy_server| into preferences.
+ virtual void AddSpdyServer(const std::string& spdy_server);
+
+ private:
+ virtual ~SpdyConfigServiceDefaults();
+
+ // Default value of prefs.
+ const SpdyConfig default_config_;
+
+ DISALLOW_COPY_AND_ASSIGN(SpdyConfigServiceDefaults);
+};
+
+} // namespace net
+
+#endif // NET_BASE_SPDY_CONFIG_SERVICE_DEFAULTS_H_

Powered by Google App Engine
This is Rietveld 408576698