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

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

Powered by Google App Engine
This is Rietveld 408576698