blob: 487f235c2e29237e8d7b5d83b087c305b3ce5ff7 [file] [log] [blame]
[email protected]ee4c30d2012-11-07 15:08:431// 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 Drissman13fc8932015-12-20 04:40:4610#include "base/macros.h"
[email protected]ee4c30d2012-11-07 15:08:4311#include "net/base/net_export.h"
12
[email protected]ee4c30d2012-11-07 15:08:4313namespace net {
14
[email protected]84f05432013-03-15 01:00:1215// The interface used by HTTP jobs to retrieve HTTP Accept-Language
16// and User-Agent header values.
[email protected]ee4c30d2012-11-07 15:08:4317class 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]aa051272014-03-10 05:56:5625 // Gets the UA string.
26 virtual std::string GetUserAgent() const = 0;
[email protected]ee4c30d2012-11-07 15:08:4327
28 private:
29 DISALLOW_COPY_AND_ASSIGN(HttpUserAgentSettings);
30};
31
32} // namespace net
33
34#endif // NET_URL_REQUEST_HTTP_USER_AGENT_SETTINGS_H_