| 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_SERVICE_CAST_SERVICE_SIMPLE_H_ | 5 #ifndef CHROMECAST_SERVICE_CAST_SERVICE_SIMPLE_H_ |
| 6 #define CHROMECAST_SERVICE_CAST_SERVICE_SIMPLE_H_ | 6 #define CHROMECAST_SERVICE_CAST_SERVICE_SIMPLE_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "chromecast/service/cast_service.h" | 9 #include "chromecast/service/cast_service.h" |
| 10 | 10 |
| 11 namespace aura { | 11 namespace aura { |
| 12 class WindowTreeHost; | 12 class WindowTreeHost; |
| 13 } | 13 } |
| 14 | 14 |
| 15 namespace content { | 15 namespace content { |
| 16 class WebContents; | 16 class WebContents; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace chromecast { | 19 namespace chromecast { |
| 20 | 20 |
| 21 class CastServiceSimple : public CastService { | 21 class CastServiceSimple : public CastService { |
| 22 public: | 22 public: |
| 23 CastServiceSimple(content::BrowserContext* browser_context, | 23 CastServiceSimple(content::BrowserContext* browser_context, |
| 24 const OptInStatsChangedCallback& opt_in_stats_callback); | 24 const OptInStatsChangedCallback& opt_in_stats_callback); |
| 25 virtual ~CastServiceSimple(); | 25 virtual ~CastServiceSimple(); |
| 26 | 26 |
| 27 protected: | 27 protected: |
| 28 // CastService implementation: | 28 // CastService implementation: |
| 29 virtual void Initialize() OVERRIDE; | 29 virtual void Initialize() override; |
| 30 virtual void StartInternal() OVERRIDE; | 30 virtual void StartInternal() override; |
| 31 virtual void StopInternal() OVERRIDE; | 31 virtual void StopInternal() override; |
| 32 | 32 |
| 33 private: | 33 private: |
| 34 scoped_ptr<aura::WindowTreeHost> window_tree_host_; | 34 scoped_ptr<aura::WindowTreeHost> window_tree_host_; |
| 35 scoped_ptr<content::WebContents> web_contents_; | 35 scoped_ptr<content::WebContents> web_contents_; |
| 36 | 36 |
| 37 DISALLOW_COPY_AND_ASSIGN(CastServiceSimple); | 37 DISALLOW_COPY_AND_ASSIGN(CastServiceSimple); |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 } // namespace chromecast | 40 } // namespace chromecast |
| 41 | 41 |
| 42 #endif // CHROMECAST_SERVICE_CAST_SERVICE_SIMPLE_H_ | 42 #endif // CHROMECAST_SERVICE_CAST_SERVICE_SIMPLE_H_ |
| OLD | NEW |