OLD | NEW |
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 |
OLD | NEW |