| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2012 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 CHROME_BROWSER_NET_BASIC_HTTP_USER_AGENT_SETTINGS_H_ |
| 6 #define CHROME_BROWSER_NET_BASIC_HTTP_USER_AGENT_SETTINGS_H_ |
| 7 |
| 8 #include "net/url_request/const_http_accept_language_and_charset.h" |
| 9 |
| 10 // An implementation of |HttpUserAgentSettings| that provides fixed values for |
| 11 // the HTTP headers Accept-Language and Accept-Charset and uses |
| 12 // |content::GetUserAgent| to provide the HTTP User-Agent header value. |
| 13 class BasicHttpUserAgentSettings |
| 14 : public net::ConstHttpAcceptLanguageAndCharset { |
| 15 public: |
| 16 BasicHttpUserAgentSettings(const std::string& accept_language, |
| 17 const std::string& accept_charset); |
| 18 virtual ~BasicHttpUserAgentSettings() {} |
| 19 |
| 20 // ConstHttpAcceptLanguageAndCharset implementation |
| 21 virtual std::string GetUserAgent(const GURL& url) OVERRIDE; |
| 22 |
| 23 private: |
| 24 DISALLOW_COPY_AND_ASSIGN(BasicHttpUserAgentSettings); |
| 25 }; |
| 26 |
| 27 #endif // CHROME_BROWSER_NET_BASIC_HTTP_USER_AGENT_SETTINGS_H_ |
| 28 |
| OLD | NEW |