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

Unified Diff: android_webview/native/aw_contents.h

Issue 10868095: Support fetching AwContents from a WebContents (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: simpler version Created 8 years, 4 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 | « no previous file | android_webview/native/aw_contents.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/native/aw_contents.h
diff --git a/android_webview/native/aw_contents.h b/android_webview/native/aw_contents.h
index b37511af96d0e05f6a746ae4c7fd38368c20121d..b2825850aef8c8d0df798d961c812e239602c1f9 100644
--- a/android_webview/native/aw_contents.h
+++ b/android_webview/native/aw_contents.h
@@ -27,12 +27,16 @@ class AwWebContentsDelegate;
// level of indirection provided by the AwContentsContainer abstraction.
class AwContents {
public:
+ // Returns the AwContents instance associated with |web_contents|, or NULL.
+ static AwContents* FromWebContents(content::WebContents* web_contents);
+
AwContents(JNIEnv* env,
jobject obj,
jobject web_contents_delegate,
bool private_browsing);
~AwContents();
+ // Methods called from Java.
jint GetWebContents(JNIEnv* env, jobject obj);
void Destroy(JNIEnv* env, jobject obj);
« no previous file with comments | « no previous file | android_webview/native/aw_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698