1 // Copyright 2014 Samsung Electronics. 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.
5 #ifndef HTTP_USER_AGENT_SETTINGS_EFL_H_
6 #define HTTP_USER_AGENT_SETTINGS_EFL_H_
10 #include "base/compiler_specific.h"
11 #include "net/url_request/http_user_agent_settings.h"
13 // An implementation of |HttpUserAgentSettings| that provides fixed value for
14 // the Accept-Language HTTP header and uses |content::GetUserAgent| to provide
15 // the HTTP User-Agent header value.
16 class HttpUserAgentSettingsEfl : public net::HttpUserAgentSettings {
18 HttpUserAgentSettingsEfl();
19 virtual ~HttpUserAgentSettingsEfl();
21 // Set Accept language. In case when empty argument is passed keep previously assigned.
22 static void SetAcceptLanguage(const std::string&);
24 // HttpUserAgentSettings implementation
25 virtual std::string GetAcceptLanguage() const override;
26 virtual std::string GetUserAgent() const override;
28 DISALLOW_COPY_AND_ASSIGN(HttpUserAgentSettingsEfl);
31 #endif // HTTP_USER_AGENT_SETTINGS_EFL_H_