| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "android_webview/browser/aw_contents.h" | 5 #include "android_webview/browser/aw_contents.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "android_webview/browser/aw_autofill_client.h" | 10 #include "android_webview/browser/aw_autofill_client.h" |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 // The |aw_content| param is technically spurious as it duplicates |obj| but | 254 // The |aw_content| param is technically spurious as it duplicates |obj| but |
| 255 // is passed over anyway to make the binding more explicit. | 255 // is passed over anyway to make the binding more explicit. |
| 256 java_ref_ = JavaObjectWeakGlobalRef(env, aw_contents); | 256 java_ref_ = JavaObjectWeakGlobalRef(env, aw_contents); |
| 257 | 257 |
| 258 web_contents_delegate_.reset( | 258 web_contents_delegate_.reset( |
| 259 new AwWebContentsDelegate(env, web_contents_delegate)); | 259 new AwWebContentsDelegate(env, web_contents_delegate)); |
| 260 web_contents_->SetDelegate(web_contents_delegate_.get()); | 260 web_contents_->SetDelegate(web_contents_delegate_.get()); |
| 261 | 261 |
| 262 contents_client_bridge_.reset( | 262 contents_client_bridge_.reset( |
| 263 new AwContentsClientBridge(env, contents_client_bridge)); | 263 new AwContentsClientBridge(env, contents_client_bridge)); |
| 264 AwContentsClientBridgeBase::Associate(web_contents_.get(), | 264 AwContentsClientBridge::Associate(web_contents_.get(), |
| 265 contents_client_bridge_.get()); | 265 contents_client_bridge_.get()); |
| 266 | 266 |
| 267 AwContentsIoThreadClientImpl::Associate(web_contents_.get(), | 267 AwContentsIoThreadClientImpl::Associate(web_contents_.get(), |
| 268 io_thread_client); | 268 io_thread_client); |
| 269 | 269 |
| 270 InterceptNavigationDelegate::Associate( | 270 InterceptNavigationDelegate::Associate( |
| 271 web_contents_.get(), base::MakeUnique<InterceptNavigationDelegate>( | 271 web_contents_.get(), base::MakeUnique<InterceptNavigationDelegate>( |
| 272 env, intercept_navigation_delegate)); | 272 env, intercept_navigation_delegate)); |
| 273 | 273 |
| 274 // Finally, having setup the associations, release any deferred requests | 274 // Finally, having setup the associations, release any deferred requests |
| 275 for (content::RenderFrameHost* rfh : web_contents_->GetAllFrames()) { | 275 for (content::RenderFrameHost* rfh : web_contents_->GetAllFrames()) { |
| (...skipping 1169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1445 | 1445 |
| 1446 return Java_AwContents_onRenderProcessGoneDetail(env, obj, child_process_id, | 1446 return Java_AwContents_onRenderProcessGoneDetail(env, obj, child_process_id, |
| 1447 crashed); | 1447 crashed); |
| 1448 } | 1448 } |
| 1449 | 1449 |
| 1450 void AwContents::RenderProcessReady(content::RenderProcessHost* host) { | 1450 void AwContents::RenderProcessReady(content::RenderProcessHost* host) { |
| 1451 UpdateRendererPriority(); | 1451 UpdateRendererPriority(); |
| 1452 } | 1452 } |
| 1453 | 1453 |
| 1454 } // namespace android_webview | 1454 } // namespace android_webview |
| OLD | NEW |