| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROMECAST_BROWSER_SERVICE_CAST_SERVICE_SIMPLE_H_ | 5 #ifndef CHROMECAST_BROWSER_SERVICE_CAST_SERVICE_SIMPLE_H_ |
| 6 #define CHROMECAST_BROWSER_SERVICE_CAST_SERVICE_SIMPLE_H_ | 6 #define CHROMECAST_BROWSER_SERVICE_CAST_SERVICE_SIMPLE_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "chromecast/browser/service/cast_service.h" | 9 #include "chromecast/browser/service/cast_service.h" |
| 10 | 10 |
| 11 namespace aura { | |
| 12 class WindowTreeHost; | |
| 13 } | |
| 14 | |
| 15 namespace content { | 11 namespace content { |
| 16 class WebContents; | 12 class WebContents; |
| 17 } | 13 } |
| 18 | 14 |
| 19 namespace chromecast { | 15 namespace chromecast { |
| 16 class CastContentWindow; |
| 20 | 17 |
| 21 class CastServiceSimple : public CastService { | 18 class CastServiceSimple : public CastService { |
| 22 public: | 19 public: |
| 23 CastServiceSimple(content::BrowserContext* browser_context, | 20 CastServiceSimple(content::BrowserContext* browser_context, |
| 24 const OptInStatsChangedCallback& opt_in_stats_callback); | 21 const OptInStatsChangedCallback& opt_in_stats_callback); |
| 25 virtual ~CastServiceSimple(); | 22 virtual ~CastServiceSimple(); |
| 26 | 23 |
| 27 protected: | 24 protected: |
| 28 // CastService implementation: | 25 // CastService implementation: |
| 29 virtual void Initialize() override; | 26 virtual void Initialize() override; |
| 30 virtual void StartInternal() override; | 27 virtual void StartInternal() override; |
| 31 virtual void StopInternal() override; | 28 virtual void StopInternal() override; |
| 32 | 29 |
| 33 private: | 30 private: |
| 34 scoped_ptr<aura::WindowTreeHost> window_tree_host_; | 31 scoped_ptr<CastContentWindow> window_; |
| 35 scoped_ptr<content::WebContents> web_contents_; | 32 scoped_ptr<content::WebContents> web_contents_; |
| 36 | 33 |
| 37 DISALLOW_COPY_AND_ASSIGN(CastServiceSimple); | 34 DISALLOW_COPY_AND_ASSIGN(CastServiceSimple); |
| 38 }; | 35 }; |
| 39 | 36 |
| 40 } // namespace chromecast | 37 } // namespace chromecast |
| 41 | 38 |
| 42 #endif // CHROMECAST_BROWSER_SERVICE_CAST_SERVICE_SIMPLE_H_ | 39 #endif // CHROMECAST_BROWSER_SERVICE_CAST_SERVICE_SIMPLE_H_ |
| OLD | NEW |