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
3 // found in the LICENSE file.
5 #include "chromecast/service/cast_service.h"
7 #include "base/logging.h"
8 #include "base/threading/thread_checker.h"
10 namespace chromecast
{
12 CastService::CastService(content::BrowserContext
* browser_context
)
13 : browser_context_(browser_context
),
15 thread_checker_(new base::ThreadChecker()) {
18 CastService::~CastService() {
19 DCHECK(thread_checker_
->CalledOnValidThread());
23 void CastService::Start() {
24 DCHECK(thread_checker_
->CalledOnValidThread());
31 void CastService::Stop() {
32 DCHECK(thread_checker_
->CalledOnValidThread());
37 } // namespace chromecast