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