| Index: chromecast/shell/browser/cast_http_user_agent_settings.h
|
| diff --git a/chromecast/shell/browser/cast_http_user_agent_settings.h b/chromecast/shell/browser/cast_http_user_agent_settings.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..00f86d59ab5ccb4d1beecf7ba1b952ce89788859
|
| --- /dev/null
|
| +++ b/chromecast/shell/browser/cast_http_user_agent_settings.h
|
| @@ -0,0 +1,33 @@
|
| +// Copyright 2014 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 CHROMECAST_SHELL_BROWSER_CAST_HTTP_USER_AGENT_SETTINGS_H_
|
| +#define CHROMECAST_SHELL_BROWSER_CAST_HTTP_USER_AGENT_SETTINGS_H_
|
| +
|
| +#include "base/compiler_specific.h"
|
| +#include "base/macros.h"
|
| +#include "base/prefs/pref_member.h"
|
| +#include "net/url_request/http_user_agent_settings.h"
|
| +
|
| +namespace chromecast {
|
| +namespace shell {
|
| +
|
| +class CastHttpUserAgentSettings : public net::HttpUserAgentSettings {
|
| + public:
|
| + CastHttpUserAgentSettings();
|
| + virtual ~CastHttpUserAgentSettings();
|
| +
|
| + // net::HttpUserAgentSettings implementation:
|
| + virtual std::string GetAcceptLanguage() const OVERRIDE;
|
| + virtual std::string GetUserAgent() const OVERRIDE;
|
| +
|
| + private:
|
| + mutable std::string accept_language_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(CastHttpUserAgentSettings);
|
| +};
|
| +
|
| +} // namespace shell
|
| +} // namespace chromecast
|
| +#endif // CHROMECAST_SHELL_BROWSER_CAST_HTTP_USER_AGENT_SETTINGS_H_
|
|
|