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

Side by Side Diff: chromecast/browser/cast_http_user_agent_settings.h

Issue 945073002: Chromecast: minor code cleanups. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « no previous file | chromecast/chromecast.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROMECAST_BROWSER_CAST_HTTP_USER_AGENT_SETTINGS_H_ 5 #ifndef CHROMECAST_BROWSER_CAST_HTTP_USER_AGENT_SETTINGS_H_
6 #define CHROMECAST_BROWSER_CAST_HTTP_USER_AGENT_SETTINGS_H_ 6 #define CHROMECAST_BROWSER_CAST_HTTP_USER_AGENT_SETTINGS_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/prefs/pref_member.h"
11 #include "net/url_request/http_user_agent_settings.h" 10 #include "net/url_request/http_user_agent_settings.h"
12 11
13 namespace chromecast { 12 namespace chromecast {
14 namespace shell { 13 namespace shell {
15 14
16 class CastHttpUserAgentSettings : public net::HttpUserAgentSettings { 15 class CastHttpUserAgentSettings : public net::HttpUserAgentSettings {
17 public: 16 public:
18 CastHttpUserAgentSettings(); 17 CastHttpUserAgentSettings();
19 ~CastHttpUserAgentSettings() override; 18 ~CastHttpUserAgentSettings() override;
20 19
21 // net::HttpUserAgentSettings implementation: 20 // net::HttpUserAgentSettings implementation:
22 std::string GetAcceptLanguage() const override; 21 std::string GetAcceptLanguage() const override;
23 std::string GetUserAgent() const override; 22 std::string GetUserAgent() const override;
24 23
25 private: 24 private:
26 mutable std::string accept_language_; 25 mutable std::string accept_language_;
27 26
28 DISALLOW_COPY_AND_ASSIGN(CastHttpUserAgentSettings); 27 DISALLOW_COPY_AND_ASSIGN(CastHttpUserAgentSettings);
29 }; 28 };
30 29
31 } // namespace shell 30 } // namespace shell
32 } // namespace chromecast 31 } // namespace chromecast
33 #endif // CHROMECAST_BROWSER_CAST_HTTP_USER_AGENT_SETTINGS_H_ 32 #endif // CHROMECAST_BROWSER_CAST_HTTP_USER_AGENT_SETTINGS_H_
OLDNEW
« no previous file with comments | « no previous file | chromecast/chromecast.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698