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

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: Add an additional function in gl_surface_cast.cc Created 6 years, 9 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..0c7f4ec5b005eb8ae29bf5fc157fa19ac7099dfa
--- /dev/null
+++ b/chromecast/service/cast_service.h
@@ -0,0 +1,47 @@
+// Copyright (c) 2014 Google Inc. 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/memory/scoped_ptr.h"
+
+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<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