| Index: chromecast/browser/service/cast_service_simple.h
|
| diff --git a/chromecast/browser/service/cast_service_simple.h b/chromecast/browser/service/cast_service_simple.h
|
| index 636fbeccb4dec584de116dc3e97bbab1d1b42f22..9b812355c98ffb78c274f20995c316a38949c278 100644
|
| --- a/chromecast/browser/service/cast_service_simple.h
|
| +++ b/chromecast/browser/service/cast_service_simple.h
|
| @@ -8,19 +8,14 @@
|
| #include <memory>
|
|
|
| #include "base/macros.h"
|
| -#include "chromecast/browser/cast_content_window.h"
|
| +#include "chromecast/browser/cast_web_view.h"
|
| #include "chromecast/service/cast_service.h"
|
| #include "url/gurl.h"
|
|
|
| -namespace content {
|
| -class WebContents;
|
| -}
|
| -
|
| namespace chromecast {
|
| namespace shell {
|
|
|
| -class CastServiceSimple : public CastService,
|
| - public CastContentWindow::Delegate {
|
| +class CastServiceSimple : public CastService, public CastWebView::Delegate {
|
| public:
|
| CastServiceSimple(content::BrowserContext* browser_context,
|
| PrefService* pref_service);
|
| @@ -33,13 +28,16 @@ class CastServiceSimple : public CastService,
|
| void StartInternal() override;
|
| void StopInternal() override;
|
|
|
| + // CastWebView::Delegate implementation:
|
| + void OnPageStopped(int error_code) override;
|
| + void OnLoadingStateChanged(bool loading) override;
|
| +
|
| // CastContentWindow::Delegate implementation:
|
| void OnWindowDestroyed() override;
|
| void OnKeyEvent(const ui::KeyEvent& key_event) override;
|
|
|
| private:
|
| - std::unique_ptr<CastContentWindow> window_;
|
| - std::unique_ptr<content::WebContents> web_contents_;
|
| + std::unique_ptr<CastWebView> cast_web_view_;
|
| GURL startup_url_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(CastServiceSimple);
|
|
|