[M49_2623] Chromium upversion to m49_2623 branch.
[platform/framework/web/chromium-efl.git] / tizen_src / ewk / efl_integration / http_user_agent_settings_efl.h
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.
4
5 #ifndef HTTP_USER_AGENT_SETTINGS_EFL_H_
6 #define HTTP_USER_AGENT_SETTINGS_EFL_H_
7
8 #include <string>
9
10 #include "base/compiler_specific.h"
11 #include "net/url_request/http_user_agent_settings.h"
12
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 {
17  public:
18   HttpUserAgentSettingsEfl();
19   virtual ~HttpUserAgentSettingsEfl();
20
21   // Set Accept language. In case when empty argument is passed keep previously assigned.
22   static void SetAcceptLanguage(const std::string&);
23
24   // HttpUserAgentSettings implementation
25   virtual std::string GetAcceptLanguage() const override;
26   virtual std::string GetUserAgent() const override;
27
28   DISALLOW_COPY_AND_ASSIGN(HttpUserAgentSettingsEfl);
29 };
30
31 #endif  // HTTP_USER_AGENT_SETTINGS_EFL_H_