| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROMECAST_BROWSER_CAST_HTTP_USER_AGENT_SETTINGS_H_ | 5 #ifndef CHROMECAST_BROWSER_CAST_HTTP_USER_AGENT_SETTINGS_H_ |
| 6 #define CHROMECAST_BROWSER_CAST_HTTP_USER_AGENT_SETTINGS_H_ | 6 #define CHROMECAST_BROWSER_CAST_HTTP_USER_AGENT_SETTINGS_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "net/url_request/http_user_agent_settings.h" | 10 #include "net/url_request/http_user_agent_settings.h" |
| 11 | 11 |
| 12 namespace chromecast { | 12 namespace chromecast { |
| 13 namespace shell { | 13 namespace shell { |
| 14 | 14 |
| 15 class CastHttpUserAgentSettings : public net::HttpUserAgentSettings { | 15 class CastHttpUserAgentSettings : public net::HttpUserAgentSettings { |
| 16 public: | 16 public: |
| 17 CastHttpUserAgentSettings(); | 17 CastHttpUserAgentSettings(); |
| 18 ~CastHttpUserAgentSettings() override; | 18 ~CastHttpUserAgentSettings() override; |
| 19 | 19 |
| 20 // net::HttpUserAgentSettings implementation: | 20 // net::HttpUserAgentSettings implementation: |
| 21 std::string GetAcceptLanguage() const override; | 21 std::string GetAcceptLanguage() const override; |
| 22 std::string GetUserAgent() const override; | 22 std::string GetUserAgent() const override; |
| 23 | 23 |
| 24 private: | 24 private: |
| 25 mutable std::string last_locale_; |
| 25 mutable std::string accept_language_; | 26 mutable std::string accept_language_; |
| 26 | 27 |
| 27 DISALLOW_COPY_AND_ASSIGN(CastHttpUserAgentSettings); | 28 DISALLOW_COPY_AND_ASSIGN(CastHttpUserAgentSettings); |
| 28 }; | 29 }; |
| 29 | 30 |
| 30 } // namespace shell | 31 } // namespace shell |
| 31 } // namespace chromecast | 32 } // namespace chromecast |
| 32 #endif // CHROMECAST_BROWSER_CAST_HTTP_USER_AGENT_SETTINGS_H_ | 33 #endif // CHROMECAST_BROWSER_CAST_HTTP_USER_AGENT_SETTINGS_H_ |
| OLD | NEW |