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

Side by Side 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, 3 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_BASE_SPDY_CONFIG_SERVICE_DEFAULTS_H_
6 #define NET_BASE_SPDY_CONFIG_SERVICE_DEFAULTS_H_
7 #pragma once
8
9 #include <string>
10
11 #include "net/base/net_export.h"
12 #include "net/spdy/spdy_config_service.h"
13
14 namespace net {
15
16 // This SpdyConfigService always returns the default SpdyConfig settings. It is
17 // mainly useful for unittests, or for platforms that do not have a native
18 // implementation of SpdyConfigService yet.
19 class NET_EXPORT SpdyConfigServiceDefaults : public SpdyConfigService {
20 public:
21 SpdyConfigServiceDefaults();
22
23 // Store default Spdy config settings in |config|.
24 virtual void GetSpdyConfig(SpdyConfig* config);
25
26 // Add |spdy_server| into preferences.
27 virtual void AddSpdyServer(const std::string& spdy_server);
28
29 private:
30 virtual ~SpdyConfigServiceDefaults();
31
32 // Default value of prefs.
33 const SpdyConfig default_config_;
34
35 DISALLOW_COPY_AND_ASSIGN(SpdyConfigServiceDefaults);
36 };
37
38 } // namespace net
39
40 #endif // NET_BASE_SPDY_CONFIG_SERVICE_DEFAULTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698