Index: content/browser/android/content_view_core_impl.cc |
diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc |
index 2ef62bec3df0142e13e38f818bb89893184867ed..4b3bba2350b399cbcb8fad9ec43675dd7655004b 100644 |
--- a/content/browser/android/content_view_core_impl.cc |
+++ b/content/browser/android/content_view_core_impl.cc |
@@ -36,6 +36,7 @@ |
#include "content/browser/renderer_host/render_widget_host_view_android.h" |
#include "content/browser/screen_orientation/screen_orientation_dispatcher_host.h" |
#include "content/browser/ssl/ssl_host_state.h" |
+#include "content/browser/transition_request_manager.h" |
#include "content/browser/web_contents/web_contents_view_android.h" |
#include "content/common/input/web_input_event_traits.h" |
#include "content/common/input_messages.h" |
@@ -1578,11 +1579,44 @@ void ContentViewCoreImpl::ExtractSmartClipData(JNIEnv* env, |
GetWebContents()->GetRoutingID(), rect)); |
} |
+void ContentViewCoreImpl::ResumeResponseDeferredAtStart(JNIEnv* env, |
+ jobject obj) { |
+ static_cast<WebContentsImpl*>(GetWebContents())-> |
+ ResumeResponseDeferredAtStart(); |
+} |
+ |
+void ContentViewCoreImpl::SetHasPendingNavigationTransitionForTesting( |
+ JNIEnv* env, |
+ jobject obj) { |
+ RenderFrameHost* frame = static_cast<WebContentsImpl*>(GetWebContents())-> |
+ GetMainFrame(); |
+ TransitionRequestManager::GetInstance()->SetHasPendingTransitionRequest( |
+ frame->GetProcess()->GetID(), frame->GetRoutingID(), true); |
+} |
+ |
jint ContentViewCoreImpl::GetCurrentRenderProcessId(JNIEnv* env, jobject obj) { |
return GetRenderProcessIdFromRenderViewHost( |
web_contents_->GetRenderViewHost()); |
} |
+void ContentViewCoreImpl::DidDeferAfterResponseStarted() { |
+ JNIEnv* env = AttachCurrentThread(); |
+ ScopedJavaLocalRef<jobject> obj(java_ref_.get(env)); |
+ if (obj.is_null()) |
+ return; |
+ Java_ContentViewCore_didDeferAfterResponseStarted(env, obj.obj()); |
+} |
+ |
+bool ContentViewCoreImpl::WillHandleDeferAfterResponseStarted() { |
+ JNIEnv* env = AttachCurrentThread(); |
+ ScopedJavaLocalRef<jobject> obj = java_ref_.get(env); |
+ if (obj.is_null()) |
+ return false; |
+ |
+ return Java_ContentViewCore_willHandleDeferAfterResponseStarted(env, |
+ obj.obj()); |
+} |
+ |
void ContentViewCoreImpl::OnSmartClipDataExtracted( |
const base::string16& result) { |
JNIEnv* env = AttachCurrentThread(); |