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