[email protected] | ee4c30d | 2012-11-07 15:08:43 | [diff] [blame] | 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 NET_URL_REQUEST_HTTP_USER_AGENT_SETTINGS_H_ | ||||
6 | #define NET_URL_REQUEST_HTTP_USER_AGENT_SETTINGS_H_ | ||||
7 | |||||
8 | #include <string> | ||||
9 | |||||
Avi Drissman | 13fc893 | 2015-12-20 04:40:46 | [diff] [blame] | 10 | #include "base/macros.h" |
[email protected] | ee4c30d | 2012-11-07 15:08:43 | [diff] [blame] | 11 | #include "net/base/net_export.h" |
12 | |||||
[email protected] | ee4c30d | 2012-11-07 15:08:43 | [diff] [blame] | 13 | namespace net { |
14 | |||||
[email protected] | 84f0543 | 2013-03-15 01:00:12 | [diff] [blame] | 15 | // The interface used by HTTP jobs to retrieve HTTP Accept-Language |
16 | // and User-Agent header values. | ||||
[email protected] | ee4c30d | 2012-11-07 15:08:43 | [diff] [blame] | 17 | class NET_EXPORT HttpUserAgentSettings { |
18 | public: | ||||
19 | HttpUserAgentSettings() {} | ||||
20 | virtual ~HttpUserAgentSettings() {} | ||||
21 | |||||
22 | // Gets the value of 'Accept-Language' header field. | ||||
23 | virtual std::string GetAcceptLanguage() const = 0; | ||||
24 | |||||
[email protected] | aa05127 | 2014-03-10 05:56:56 | [diff] [blame] | 25 | // Gets the UA string. |
26 | virtual std::string GetUserAgent() const = 0; | ||||
[email protected] | ee4c30d | 2012-11-07 15:08:43 | [diff] [blame] | 27 | |
28 | private: | ||||
29 | DISALLOW_COPY_AND_ASSIGN(HttpUserAgentSettings); | ||||
30 | }; | ||||
31 | |||||
32 | } // namespace net | ||||
33 | |||||
34 | #endif // NET_URL_REQUEST_HTTP_USER_AGENT_SETTINGS_H_ |