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

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

Issue 598303002: Chromecast: adds CastNetworkDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removes gyp dep 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 "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 #include "net/url_request/url_request_context_getter.h"
10 10
11 namespace chromecast { 11 namespace chromecast {
12 12
13 // static 13 // static
14 CastService* CastService::Create( 14 CastService* CastService::Create(
15 content::BrowserContext* browser_context, 15 content::BrowserContext* browser_context,
16 net::URLRequestContextGetter* request_context_getter) { 16 net::URLRequestContextGetter* request_context_getter,
17 shell::CastNetworkDelegate* network_delegate) {
17 return new CastServiceAndroid(browser_context); 18 return new CastServiceAndroid(browser_context);
18 } 19 }
19 20
20 CastServiceAndroid::CastServiceAndroid(content::BrowserContext* browser_context) 21 CastServiceAndroid::CastServiceAndroid(content::BrowserContext* browser_context)
21 : CastService(browser_context) { 22 : CastService(browser_context) {
22 } 23 }
23 24
24 CastServiceAndroid::~CastServiceAndroid() { 25 CastServiceAndroid::~CastServiceAndroid() {
25 } 26 }
26 27
27 void CastServiceAndroid::Initialize() { 28 void CastServiceAndroid::Initialize() {
28 // TODO(gunsch): Wire this the SendUsageStatsChanged callback once 29 // TODO(gunsch): Wire this the SendUsageStatsChanged callback once
29 // CastService::Delegate is added. 30 // CastService::Delegate is added.
30 } 31 }
31 32
32 void CastServiceAndroid::StartInternal() { 33 void CastServiceAndroid::StartInternal() {
33 } 34 }
34 35
35 void CastServiceAndroid::StopInternal() { 36 void CastServiceAndroid::StopInternal() {
36 } 37 }
37 38
38 } // 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