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

Unified Diff: chromecast/service/cast_service.h

Issue 223143003: Initial checkin of chromecast content embedder (cast_shell) and related build scripts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Additional presubmit clean-up. Created 6 years, 5 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
Index: chromecast/service/cast_service.h
diff --git a/chromecast/service/cast_service.h b/chromecast/service/cast_service.h
new file mode 100644
index 0000000000000000000000000000000000000000..de408b4cc6cbd09dbb977f12af777c1193a4cefc
--- /dev/null
+++ b/chromecast/service/cast_service.h
@@ -0,0 +1,53 @@
+// 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.
+
+#ifndef CHROMECAST_SERVICE_CAST_SERVICE_H_
+#define CHROMECAST_SERVICE_CAST_SERVICE_H_
+
+#include "base/macros.h"
+#include "base/memory/scoped_ptr.h"
+
+namespace aura {
+class WindowTreeHost;
+}
+
+namespace base {
+class ThreadChecker;
+}
+
+namespace content{
+class BrowserContext;
+class WebContents;
+}
+
+namespace chromecast {
+
+class CastService {
+ public:
+ explicit CastService(content::BrowserContext* browser_context);
+ virtual ~CastService();
+
+ // Start/stop the cast service.
+ void Start();
+ void Stop();
+
+ private:
+ // Platform specific initialization if any.
+ static void PlatformInitialize();
+
+ void Initialize();
+
+ content::BrowserContext* const browser_context_;
+ scoped_ptr<aura::WindowTreeHost> window_tree_host_;
+ scoped_ptr<content::WebContents> web_contents_;
+ bool stopped_;
+
+ const scoped_ptr<base::ThreadChecker> thread_checker_;
+
+ DISALLOW_COPY_AND_ASSIGN(CastService);
+};
+
+} // namespace chromecast
+
+#endif // CHROMECAST_SERVICE_CAST_SERVICE_H_

Powered by Google App Engine
This is Rietveld 408576698