15821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Copyright (c) 2012 The Chromium Authors. All rights reserved.
25821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
35821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// found in the LICENSE file.
45821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
55821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#include "net/url_request/static_http_user_agent_settings.h"
65821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
75821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)namespace net {
85821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
95821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)StaticHttpUserAgentSettings::StaticHttpUserAgentSettings(
105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    const std::string& accept_language,
115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    const std::string& user_agent)
125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    : accept_language_(accept_language),
135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)      user_agent_(user_agent) {
145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)}
155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)StaticHttpUserAgentSettings::~StaticHttpUserAgentSettings() {
175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)}
185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)std::string StaticHttpUserAgentSettings::GetAcceptLanguage() const {
205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  return accept_language_;
215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)}
225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
23a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)std::string StaticHttpUserAgentSettings::GetUserAgent() const {
245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  return user_agent_;
255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)}
265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)}  // namespace net
285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
29