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

Side by Side Diff: chromecast/service/cast_service_android.cc

Issue 606513002: Pass the system url request context getter to the cast service so that it can be used by various sy… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
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 #include "chromecast/service/cast_service_android.h" 5 #include "chromecast/service/cast_service_android.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "chromecast/android/chromecast_config_android.h" 8 #include "chromecast/android/chromecast_config_android.h"
9 #include "net/url_request/url_request_context_getter.h"
9 10
10 namespace chromecast { 11 namespace chromecast {
11 12
12 // static 13 // static
13 CastService* CastService::Create(content::BrowserContext* browser_context) { 14 CastService* CastService::Create(
15 content::BrowserContext* browser_context,
16 net::URLRequestContextGetter* request_context_getter) {
14 return new CastServiceAndroid(browser_context); 17 return new CastServiceAndroid(browser_context);
15 } 18 }
16 19
17 CastServiceAndroid::CastServiceAndroid(content::BrowserContext* browser_context) 20 CastServiceAndroid::CastServiceAndroid(content::BrowserContext* browser_context)
18 : CastService(browser_context) { 21 : CastService(browser_context) {
19 } 22 }
20 23
21 CastServiceAndroid::~CastServiceAndroid() { 24 CastServiceAndroid::~CastServiceAndroid() {
22 } 25 }
23 26
24 void CastServiceAndroid::Initialize() { 27 void CastServiceAndroid::Initialize() {
25 // TODO(gunsch): Wire this the SendUsageStatsChanged callback once 28 // TODO(gunsch): Wire this the SendUsageStatsChanged callback once
26 // CastService::Delegate is added. 29 // CastService::Delegate is added.
27 } 30 }
28 31
29 void CastServiceAndroid::StartInternal() { 32 void CastServiceAndroid::StartInternal() {
30 } 33 }
31 34
32 void CastServiceAndroid::StopInternal() { 35 void CastServiceAndroid::StopInternal() {
33 } 36 }
34 37
35 } // namespace chromecast 38 } // namespace chromecast
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698