Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1701)

Side by Side Diff: net/url_request/const_http_user_agent_settings.h

Issue 10918279: Provide mutable members of UrlRequestContext via pure-virtual interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address erikwright's second round of comments. Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // 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_CONST_HTTP_USER_AGENT_SETTINGS_H_
6 #define NET_URL_REQUEST_CONST_HTTP_USER_AGENT_SETTINGS_H_
7
8 #include "net/url_request/const_http_accept_language_and_charset.h"
9
10 namespace net {
11
12 // An implementation of |HttpUserAgentSettings| that always provides the
13 // same constant values for the HTTP Accept-Language, Accept-Charset, and
14 // User-Agent headers.
15 class NET_EXPORT ConstHttpUserAgentSettings
16 : public ConstHttpAcceptLanguageAndCharset {
mmenke 2012/09/26 16:28:20 nit: 4 space indent.
17 public:
18 ConstHttpUserAgentSettings(const std::string& accept_language,
19 const std::string& accept_charset,
20 const std::string& user_agent);
21 virtual ~ConstHttpUserAgentSettings() {}
22
23 // ConstHttpAcceptLanguageAndCharset implementation
24 virtual const std::string& GetUserAgent(const GURL& url) OVERRIDE;
25
26 private:
27 const std::string user_agent_;
28
29 DISALLOW_COPY_AND_ASSIGN(ConstHttpUserAgentSettings);
30 };
31
32 } // namespace net
33
34 #endif // NET_URL_REQUEST_CONST_HTTP_USER_AGENT_SETTINGS_H_
35
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698