| 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 | 9 |
| 10 namespace chromecast { | 10 namespace chromecast { |
| 11 | 11 |
| 12 // static | 12 // static |
| 13 CastService* CastService::Create(content::BrowserContext* browser_context) { | 13 CastService* CastService::Create( |
| 14 content::BrowserContext* browser_context, |
| 15 CastNetworkDelegate* network_delegate) { |
| 14 return new CastServiceAndroid(browser_context); | 16 return new CastServiceAndroid(browser_context); |
| 15 } | 17 } |
| 16 | 18 |
| 17 CastServiceAndroid::CastServiceAndroid(content::BrowserContext* browser_context) | 19 CastServiceAndroid::CastServiceAndroid(content::BrowserContext* browser_context) |
| 18 : CastService(browser_context) { | 20 : CastService(browser_context) { |
| 19 } | 21 } |
| 20 | 22 |
| 21 CastServiceAndroid::~CastServiceAndroid() { | 23 CastServiceAndroid::~CastServiceAndroid() { |
| 22 } | 24 } |
| 23 | 25 |
| 24 void CastServiceAndroid::Initialize() { | 26 void CastServiceAndroid::Initialize() { |
| 25 // TODO(gunsch): Wire this the SendUsageStatsChanged callback once | 27 // TODO(gunsch): Wire this the SendUsageStatsChanged callback once |
| 26 // CastService::Delegate is added. | 28 // CastService::Delegate is added. |
| 27 } | 29 } |
| 28 | 30 |
| 29 void CastServiceAndroid::StartInternal() { | 31 void CastServiceAndroid::StartInternal() { |
| 30 } | 32 } |
| 31 | 33 |
| 32 void CastServiceAndroid::StopInternal() { | 34 void CastServiceAndroid::StopInternal() { |
| 33 } | 35 } |
| 34 | 36 |
| 35 } // namespace chromecast | 37 } // namespace chromecast |
| OLD | NEW |