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

Unified Diff: content/public/browser/android/content_view_core.h

Issue 10908285: Add WebContents accessor in ContentViewCore interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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/public/browser/android/content_view_core.h
diff --git a/content/public/browser/android/content_view_core.h b/content/public/browser/android/content_view_core.h
index 0c38fb1251c591354c2f4c5f6b8eac8c301e273a..a1c43b2281a4edb9d32303c2889310cfd8769fdd 100644
--- a/content/public/browser/android/content_view_core.h
+++ b/content/public/browser/android/content_view_core.h
@@ -17,8 +17,6 @@ class WebContents;
// communicating with the native Chromium code on Android. This is a
// public interface used by native code outside of the content module.
//
-// TODO(jrg): this is a shell. Upstream the rest.
-//
// TODO(jrg): downstream, this class derives from
// base::SupportsWeakPtr<ContentViewCore>. Issues raised in
// http://codereview.chromium.org/10536066/ make us want to rethink
@@ -46,7 +44,7 @@ class ContentViewCore {
// --------------------------------------------------------------------------
// Methods called from native code
// --------------------------------------------------------------------------
-
+ virtual content::WebContents* web_contents() const = 0;
virtual base::android::ScopedJavaLocalRef<jobject> GetJavaObject() = 0;
protected:
@@ -55,4 +53,4 @@ class ContentViewCore {
}; // namespace content
-#endif // CONTENT_PUBLIC_BROWSER_CONTENT_VIEW_CORE_H_
+#endif // CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_

Powered by Google App Engine
This is Rietveld 408576698