xref: /aosp_15_r20/external/cronet/net/base/http_user_agent_settings.h (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1 // Copyright 2012 The Chromium Authors
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_BASE_HTTP_USER_AGENT_SETTINGS_H_
6 #define NET_BASE_HTTP_USER_AGENT_SETTINGS_H_
7 
8 #include <string>
9 
10 #include "net/base/net_export.h"
11 
12 namespace net {
13 
14 // The interface used by HTTP jobs to retrieve HTTP Accept-Language
15 // and User-Agent header values.
16 class NET_EXPORT HttpUserAgentSettings {
17  public:
18   HttpUserAgentSettings() = default;
19   HttpUserAgentSettings(const HttpUserAgentSettings&) = delete;
20   HttpUserAgentSettings& operator=(const HttpUserAgentSettings&) = delete;
21   virtual ~HttpUserAgentSettings() = default;
22 
23   // Gets the value of 'Accept-Language' header field.
24   virtual std::string GetAcceptLanguage() const = 0;
25 
26   // Gets the UA string.
27   virtual std::string GetUserAgent() const = 0;
28 };
29 
30 }  // namespace net
31 
32 #endif  // NET_BASE_HTTP_USER_AGENT_SETTINGS_H_
33