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

Unified Diff: content/browser/android/web_contents_observer_android.h

Issue 133073012: android: Fix ContentViewCore and RenderWidgetHostViewAndroid lifetime issue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 6 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: content/browser/android/web_contents_observer_android.h
diff --git a/content/browser/android/web_contents_observer_android.h b/content/browser/android/web_contents_observer_android.h
index 15a136390f84a54a68da3123777fa0b7675b1945..0436e8ed7c3326b041ad76e4b79a946862be40e7 100644
--- a/content/browser/android/web_contents_observer_android.h
+++ b/content/browser/android/web_contents_observer_android.h
@@ -17,6 +17,7 @@
namespace content {
+class ContentViewCore;
class RenderViewHost;
class WebContents;
@@ -26,6 +27,7 @@ class WebContentsObserverAndroid : public WebContentsObserver {
public:
WebContentsObserverAndroid(JNIEnv* env,
jobject obj,
+ ContentViewCore* content_view_core,
WebContents* web_contents);
virtual ~WebContentsObserverAndroid();
@@ -86,6 +88,7 @@ class WebContentsObserverAndroid : public WebContentsObserver {
const base::string16& description,
const GURL& url);
+ ContentViewCore* content_view_core_;
JavaObjectWeakGlobalRef weak_java_observer_;
DISALLOW_COPY_AND_ASSIGN(WebContentsObserverAndroid);

Powered by Google App Engine
This is Rietveld 408576698