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

Unified Diff: chromecast/service/cast_service.cc

Issue 638803002: Reorganizes Chromecast code to better reflect functional dependencies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: extra DEPS: chromecast/crash/android --> chromecast/common 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromecast/service/cast_service.h ('k') | chromecast/service/cast_service_android.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/service/cast_service.cc
diff --git a/chromecast/service/cast_service.cc b/chromecast/service/cast_service.cc
deleted file mode 100644
index 0490b0f50745c5edaf083634bdd03015316b2184..0000000000000000000000000000000000000000
--- a/chromecast/service/cast_service.cc
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chromecast/service/cast_service.h"
-
-#include "base/logging.h"
-#include "base/threading/thread_checker.h"
-
-namespace chromecast {
-
-CastService::CastService(
- content::BrowserContext* browser_context,
- const OptInStatsChangedCallback& opt_in_stats_callback)
- : browser_context_(browser_context),
- opt_in_stats_callback_(opt_in_stats_callback),
- stopped_(true),
- thread_checker_(new base::ThreadChecker()) {
-}
-
-CastService::~CastService() {
- DCHECK(thread_checker_->CalledOnValidThread());
- DCHECK(stopped_);
-}
-
-void CastService::Start() {
- DCHECK(thread_checker_->CalledOnValidThread());
-
- Initialize();
- stopped_ = false;
- StartInternal();
-}
-
-void CastService::Stop() {
- DCHECK(thread_checker_->CalledOnValidThread());
- StopInternal();
- stopped_ = true;
-}
-
-} // namespace chromecast
« no previous file with comments | « chromecast/service/cast_service.h ('k') | chromecast/service/cast_service_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698