| 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_
|
|
|