| 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 #include "url/gurl.h" | 10 #include "url/gurl.h" |
| 11 | 11 |
| 12 namespace content { | 12 namespace content { |
| 13 class WebContents; | 13 class WebContents; |
| 14 } | 14 } |
| 15 | 15 |
| 16 namespace chromecast { | 16 namespace chromecast { |
| 17 class CastContentWindow; | 17 class CastContentWindow; |
| 18 | 18 |
| 19 class CastServiceSimple : public CastService { | 19 class CastServiceSimple : public CastService { |
| 20 public: | 20 public: |
| 21 CastServiceSimple(content::BrowserContext* browser_context, | 21 CastServiceSimple(content::BrowserContext* browser_context, |
| 22 PrefService* pref_service, | 22 PrefService* pref_service); |
| 23 metrics::CastMetricsServiceClient* metrics_service_client); | |
| 24 ~CastServiceSimple() override; | 23 ~CastServiceSimple() override; |
| 25 | 24 |
| 26 protected: | 25 protected: |
| 27 // CastService implementation: | 26 // CastService implementation: |
| 28 void InitializeInternal() override; | 27 void InitializeInternal() override; |
| 29 void FinalizeInternal() override; | 28 void FinalizeInternal() override; |
| 30 void StartInternal() override; | 29 void StartInternal() override; |
| 31 void StopInternal() override; | 30 void StopInternal() override; |
| 32 | 31 |
| 33 private: | 32 private: |
| 34 scoped_ptr<CastContentWindow> window_; | 33 scoped_ptr<CastContentWindow> window_; |
| 35 scoped_ptr<content::WebContents> web_contents_; | 34 scoped_ptr<content::WebContents> web_contents_; |
| 36 GURL startup_url_; | 35 GURL startup_url_; |
| 37 | 36 |
| 38 DISALLOW_COPY_AND_ASSIGN(CastServiceSimple); | 37 DISALLOW_COPY_AND_ASSIGN(CastServiceSimple); |
| 39 }; | 38 }; |
| 40 | 39 |
| 41 } // namespace chromecast | 40 } // namespace chromecast |
| 42 | 41 |
| 43 #endif // CHROMECAST_BROWSER_SERVICE_CAST_SERVICE_SIMPLE_H_ | 42 #endif // CHROMECAST_BROWSER_SERVICE_CAST_SERVICE_SIMPLE_H_ |
| OLD | NEW |