OLD | NEW |
(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_ |
OLD | NEW |