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

Side by Side 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: Remove ScreenCast code and stale comments. 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 unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 #ifndef CHROMECAST_SERVICE_CAST_SERVICE_H_
6 #define CHROMECAST_SERVICE_CAST_SERVICE_H_
7
8 #include "base/memory/scoped_ptr.h"
9
10 namespace aura {
11 class WindowTreeHost;
12 }
13
14 namespace base {
15 class ThreadChecker;
16 }
17
18 namespace content{
19 class BrowserContext;
20 class WebContents;
21 }
22
23 namespace chromecast {
24
25 class CastService {
26 public:
27 explicit CastService(content::BrowserContext* browser_context);
28 virtual ~CastService();
29
30 // Start/stop the cast service.
31 void Start();
32 void Stop();
33
34 private:
35 // Platform specific initialization if any.
36 static void PlatformInitialize();
37
38 void Initialize();
39
40 content::BrowserContext* const browser_context_;
41 scoped_ptr<aura::WindowTreeHost> window_tree_host_;
42 scoped_ptr<content::WebContents> web_contents_;
43 bool stopped_;
44
45 const scoped_ptr<base::ThreadChecker> thread_checker_;
46
47 DISALLOW_COPY_AND_ASSIGN(CastService);
48 };
49
50 } // namespace chromecast
51
52 #endif // CHROMECAST_SERVICE_CAST_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698