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