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.h" | 5 #include "chromecast/browser/service/cast_service.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/threading/thread_checker.h" | 8 #include "base/threading/thread_checker.h" |
9 | 9 |
10 namespace chromecast { | 10 namespace chromecast { |
11 | 11 |
12 CastService::CastService( | 12 CastService::CastService( |
13 content::BrowserContext* browser_context, | 13 content::BrowserContext* browser_context, |
14 const OptInStatsChangedCallback& opt_in_stats_callback) | 14 const OptInStatsChangedCallback& opt_in_stats_callback) |
15 : browser_context_(browser_context), | 15 : browser_context_(browser_context), |
(...skipping 15 matching lines...) Expand all Loading... |
31 StartInternal(); | 31 StartInternal(); |
32 } | 32 } |
33 | 33 |
34 void CastService::Stop() { | 34 void CastService::Stop() { |
35 DCHECK(thread_checker_->CalledOnValidThread()); | 35 DCHECK(thread_checker_->CalledOnValidThread()); |
36 StopInternal(); | 36 StopInternal(); |
37 stopped_ = true; | 37 stopped_ = true; |
38 } | 38 } |
39 | 39 |
40 } // namespace chromecast | 40 } // namespace chromecast |
OLD | NEW |