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

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

Issue 613093002: Chromecast: removes CastNetworkDelegate from CastService::Create. (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
« no previous file with comments | « chromecast/service/cast_service.h ('k') | chromecast/service/cast_service_simple.cc » ('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 #include "chromecast/service/cast_service_android.h" 5 #include "chromecast/service/cast_service_android.h"
6 6
7 #include "chromecast/android/chromecast_config_android.h" 7 #include "chromecast/android/chromecast_config_android.h"
8 8
9 namespace chromecast { 9 namespace chromecast {
10 10
11 // static 11 // static
12 CastService* CastService::Create( 12 CastService* CastService::Create(
13 content::BrowserContext* browser_context, 13 content::BrowserContext* browser_context,
14 net::URLRequestContextGetter* request_context_getter, 14 net::URLRequestContextGetter* request_context_getter,
15 shell::CastNetworkDelegate* network_delegate,
16 const OptInStatsChangedCallback& opt_in_stats_callback) { 15 const OptInStatsChangedCallback& opt_in_stats_callback) {
17 return new CastServiceAndroid(browser_context, opt_in_stats_callback); 16 return new CastServiceAndroid(browser_context, opt_in_stats_callback);
18 } 17 }
19 18
20 CastServiceAndroid::CastServiceAndroid( 19 CastServiceAndroid::CastServiceAndroid(
21 content::BrowserContext* browser_context, 20 content::BrowserContext* browser_context,
22 const OptInStatsChangedCallback& opt_in_stats_callback) 21 const OptInStatsChangedCallback& opt_in_stats_callback)
23 : CastService(browser_context, opt_in_stats_callback) { 22 : CastService(browser_context, opt_in_stats_callback) {
24 } 23 }
25 24
26 CastServiceAndroid::~CastServiceAndroid() { 25 CastServiceAndroid::~CastServiceAndroid() {
27 } 26 }
28 27
29 void CastServiceAndroid::Initialize() { 28 void CastServiceAndroid::Initialize() {
30 android::ChromecastConfigAndroid::GetInstance()-> 29 android::ChromecastConfigAndroid::GetInstance()->
31 SetSendUsageStatsChangedCallback(opt_in_stats_callback()); 30 SetSendUsageStatsChangedCallback(opt_in_stats_callback());
32 } 31 }
33 32
34 void CastServiceAndroid::StartInternal() { 33 void CastServiceAndroid::StartInternal() {
35 } 34 }
36 35
37 void CastServiceAndroid::StopInternal() { 36 void CastServiceAndroid::StopInternal() {
38 } 37 }
39 38
40 } // namespace chromecast 39 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/service/cast_service.h ('k') | chromecast/service/cast_service_simple.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698