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

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: Add an additional function in gl_surface_cast.cc Created 6 years, 8 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 (c) 2014 Google Inc. 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 base {
11 class ThreadChecker;
12 }
13
14 namespace content{
15 class BrowserContext;
16 class WebContents;
17 }
18
19 namespace chromecast {
20
21 class CastService {
22 public:
23 explicit CastService(content::BrowserContext* browser_context);
24 virtual ~CastService();
25
26 // Start/stop the cast service.
27 void Start();
28 void Stop();
29
30 private:
31 // Platform specific initialization if any.
32 static void PlatformInitialize();
33
34 void Initialize();
35
36 content::BrowserContext* const browser_context_;
37 scoped_ptr<content::WebContents> web_contents_;
38 bool stopped_;
39
40 const scoped_ptr<base::ThreadChecker> thread_checker_;
41
42 DISALLOW_COPY_AND_ASSIGN(CastService);
43 };
44
45 } // namespace chromecast
46
47 #endif // CHROMECAST_SERVICE_CAST_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698