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

Side by Side Diff: chromecast/shell/browser/cast_http_user_agent_settings.cc

Issue 223143003: Initial checkin of chromecast content embedder (cast_shell) and related build scripts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Additional presubmit clean-up. Created 6 years, 5 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chromecast/shell/browser/cast_http_user_agent_settings.h"
6
7 #include "base/logging.h"
8 #include "chromecast/shell/common/cast_content_client.h"
9 #include "content/public/browser/browser_thread.h"
10 #include "net/http/http_util.h"
11
12 namespace chromecast {
13 namespace shell {
14
15 CastHttpUserAgentSettings::CastHttpUserAgentSettings() {
16 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
17 }
18
19 CastHttpUserAgentSettings::~CastHttpUserAgentSettings() {
20 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
21 }
22
23 std::string CastHttpUserAgentSettings::GetAcceptLanguage() const {
24 accept_language_ = net::HttpUtil::GenerateAcceptLanguageHeader("en-US");
25 return accept_language_;
26 }
27
28 std::string CastHttpUserAgentSettings::GetUserAgent() const {
29 return chromecast::shell::GetUserAgent();
30 }
31
32 } // namespace shell
33 } // namespace chromecast
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698