X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fxwalk%2Fruntime%2Fbrowser%2Fandroid%2Fxwalk_content.h;h=0a738d4521e15cfd25f4669ad8e662519965ed04;hb=6a7f56377067e5178d0a481bd2e56d781bd4eaf2;hp=2fff15b1409fbb9ed5bdd23ff4b9d087fe0a104d;hpb=d41e52f18cc3fee3627acf2db026b2a86c2a9d18;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/xwalk/runtime/browser/android/xwalk_content.h b/src/xwalk/runtime/browser/android/xwalk_content.h index 2fff15b..0a738d4 100644 --- a/src/xwalk/runtime/browser/android/xwalk_content.h +++ b/src/xwalk/runtime/browser/android/xwalk_content.h @@ -28,15 +28,22 @@ class XWalkContentsClientBridge; class XWalkContent { public: - XWalkContent(JNIEnv* env, jobject obj, jobject web_contents_delegate, - jobject contents_client_bridge); + explicit XWalkContent(scoped_ptr web_contents); ~XWalkContent(); static XWalkContent* FromID(int render_process_id, int render_view_id); static XWalkContent* FromWebContents(content::WebContents* web_contents); - jlong GetWebContents(JNIEnv* env, jobject obj, jobject io_thread_client, - jobject delegate); + jlong GetWebContents(JNIEnv* env, jobject obj); + void SetPendingWebContentsForPopup(scoped_ptr pending); + jlong ReleasePopupXWalkContent(JNIEnv* env, jobject obj); + void SetJavaPeers(JNIEnv* env, + jobject obj, + jobject xwalk_content, + jobject web_contents_delegate, + jobject contents_client_bridge, + jobject io_thread_client, + jobject intercept_navigation_delegate); void ClearCache(JNIEnv* env, jobject obj, jboolean include_disk_files); ScopedJavaLocalRef DevToolsAgentId(JNIEnv* env, jobject obj); void Destroy(JNIEnv* env, jobject obj); @@ -70,9 +77,6 @@ class XWalkContent { jstring origin); private: - content::WebContents* CreateWebContents(JNIEnv* env, jobject io_thread_client, - jobject delegate); - JavaObjectWeakGlobalRef java_ref_; // TODO(guangzhen): The WebContentsDelegate need to take ownership of // WebContents as chrome content design. For xwalk, XWalkContent owns @@ -83,6 +87,7 @@ class XWalkContent { scoped_ptr render_view_host_ext_; scoped_ptr contents_client_bridge_; scoped_ptr web_contents_; + scoped_ptr pending_contents_; // GURL is supplied by the content layer as requesting frame. // Callback is supplied by the content layer, and is invoked with the result