Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11605)

Unified Diff: chromecast/browser/service/cast_service_simple.h

Issue 2626863006: [Chromecast] Add CastWebContents (Closed)
Patch Set: [Chromecast] Add CastWebContents Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromecast/browser/cast_web_view.cc ('k') | chromecast/browser/service/cast_service_simple.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b37f3417f43c90fa5ef307ed8965f2f3eb1e288b..1a48b890cea28cb78073597449cae518463a1016 100644
--- a/chromecast/browser/service/cast_service_simple.h
+++ b/chromecast/browser/service/cast_service_simple.h
@@ -8,21 +8,16 @@
#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 {
class CastWindowManager;
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,
@@ -36,14 +31,17 @@ 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:
CastWindowManager* const window_manager_;
- 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);
« no previous file with comments | « chromecast/browser/cast_web_view.cc ('k') | chromecast/browser/service/cast_service_simple.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698