OLD | NEW |
(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_ |
OLD | NEW |