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

Side by Side Diff: net/url_request/const_http_accept_language_and_charset.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_ACCEPT_LANGUAGE_AND_CHARSET_H_
6 #define NET_URL_REQUEST_CONST_HTTP_ACCEPT_LANGUAGE_AND_CHARSET_H_
7
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "net/url_request/http_user_agent_settings.h"
11
12 namespace net {
13
14 // A partial implementation of |HttpUserAgentSettings| that always provides
15 // the same constant values for the HTTP Accept-Language and Accept-Charset
16 // headers. Implementors can inherit from this class and implement
17 // |GetUserAgent()|.
18 class NET_EXPORT ConstHttpAcceptLanguageAndCharset
19 : public HttpUserAgentSettings {
mmenke 2012/09/26 16:28:20 4 space indent.
20 public:
21 // HttpUserAgentSettings implementation
22 virtual const std::string& GetAcceptLanguage() OVERRIDE;
23 virtual const std::string& GetAcceptCharset() OVERRIDE;
24
25 protected:
26 ConstHttpAcceptLanguageAndCharset(const std::string& accept_language,
27 const std::string& accept_charset);
28 virtual ~ConstHttpAcceptLanguageAndCharset() {}
29
30 private:
31 const std::string accept_language_;
32 const std::string accept_charset_;
33
34 DISALLOW_COPY_AND_ASSIGN(ConstHttpAcceptLanguageAndCharset);
35 };
36
37 } // namespace net
38
39 #endif // NET_URL_REQUEST_CONST_HTTP_ACCEPT_LANGUAGE_AND_CHARSET_H_
40
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698