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

Unified Diff: chromecast/browser/android/cast_window_android.h

Issue 874683006: Chromecast: makes CastWindowAndroid use CastContentWindow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
Index: chromecast/browser/android/cast_window_android.h
diff --git a/chromecast/browser/android/cast_window_android.h b/chromecast/browser/android/cast_window_android.h
index 281f140ed005c280c6444c0f4b12250658aff372..1dd4feb11aa651e5efd616e93cfde032ceea30c8 100644
--- a/chromecast/browser/android/cast_window_android.h
+++ b/chromecast/browser/android/cast_window_android.h
@@ -33,6 +33,7 @@ class WebContents;
} // namespace content
namespace chromecast {
+class CastContentWindow;
namespace shell {
class CastWindowAndroid : public content::WebContentsDelegate,
@@ -76,15 +77,13 @@ class CastWindowAndroid : public content::WebContentsDelegate,
virtual void RenderProcessGone(base::TerminationStatus status) override;
private:
- explicit CastWindowAndroid(content::WebContents* web_contents);
-
- // Helper to create a new CastWindowAndroid given a newly created WebContents.
- static CastWindowAndroid* CreateCastWindowAndroid(
- content::WebContents* web_contents,
- const gfx::Size& initial_size);
+ CastWindowAndroid(content::BrowserContext* browser_context);
lcwu1 2015/02/04 00:28:31 Add 'explicit'.
gunsch 2015/02/04 00:38:36 Done.
+ void Initialize();
+ content::BrowserContext* browser_context_;
base::android::ScopedJavaGlobalRef<jobject> java_object_;
scoped_ptr<content::WebContents> web_contents_;
+ scoped_ptr<CastContentWindow> window_;
base::WeakPtrFactory<CastWindowAndroid> weak_factory_;
« no previous file with comments | « no previous file | chromecast/browser/android/cast_window_android.cc » ('j') | chromecast/browser/android/cast_window_android.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698