| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/renderer_host/aw_render_view_host_ext.h" | 5 #include "android_webview/browser/renderer_host/aw_render_view_host_ext.h" |
| 6 | 6 |
| 7 #include "android_webview/browser/aw_browser_context.h" | 7 #include "android_webview/browser/aw_browser_context.h" |
| 8 #include "android_webview/browser/scoped_allow_wait_for_legacy_web_view_api.h" | 8 #include "android_webview/browser/scoped_allow_wait_for_legacy_web_view_api.h" |
| 9 #include "android_webview/common/render_view_messages.h" | 9 #include "android_webview/common/render_view_messages.h" |
| 10 #include "base/android/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 DCHECK(CalledOnValidThread()); | 109 DCHECK(CalledOnValidThread()); |
| 110 for (std::map<int, DocumentHasImagesResult>::iterator pending_req = | 110 for (std::map<int, DocumentHasImagesResult>::iterator pending_req = |
| 111 pending_document_has_images_requests_.begin(); | 111 pending_document_has_images_requests_.begin(); |
| 112 pending_req != pending_document_has_images_requests_.end(); | 112 pending_req != pending_document_has_images_requests_.end(); |
| 113 ++pending_req) { | 113 ++pending_req) { |
| 114 pending_req->second.Run(false); | 114 pending_req->second.Run(false); |
| 115 } | 115 } |
| 116 } | 116 } |
| 117 | 117 |
| 118 void AwRenderViewHostExt::DidNavigateAnyFrame( | 118 void AwRenderViewHostExt::DidNavigateAnyFrame( |
| 119 content::RenderFrameHost* render_frame_host, |
| 119 const content::LoadCommittedDetails& details, | 120 const content::LoadCommittedDetails& details, |
| 120 const content::FrameNavigateParams& params) { | 121 const content::FrameNavigateParams& params) { |
| 121 DCHECK(CalledOnValidThread()); | 122 DCHECK(CalledOnValidThread()); |
| 122 | 123 |
| 123 AwBrowserContext::FromWebContents(web_contents()) | 124 AwBrowserContext::FromWebContents(web_contents()) |
| 124 ->AddVisitedURLs(params.redirects); | 125 ->AddVisitedURLs(params.redirects); |
| 125 } | 126 } |
| 126 | 127 |
| 127 bool AwRenderViewHostExt::OnMessageReceived(const IPC::Message& message) { | 128 bool AwRenderViewHostExt::OnMessageReceived(const IPC::Message& message) { |
| 128 bool handled = true; | 129 bool handled = true; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 void AwRenderViewHostExt::OnPageScaleFactorChanged(float page_scale_factor) { | 165 void AwRenderViewHostExt::OnPageScaleFactorChanged(float page_scale_factor) { |
| 165 client_->OnWebLayoutPageScaleFactorChanged(page_scale_factor); | 166 client_->OnWebLayoutPageScaleFactorChanged(page_scale_factor); |
| 166 } | 167 } |
| 167 | 168 |
| 168 void AwRenderViewHostExt::OnContentsSizeChanged( | 169 void AwRenderViewHostExt::OnContentsSizeChanged( |
| 169 const gfx::Size& contents_size) { | 170 const gfx::Size& contents_size) { |
| 170 client_->OnWebLayoutContentsSizeChanged(contents_size); | 171 client_->OnWebLayoutContentsSizeChanged(contents_size); |
| 171 } | 172 } |
| 172 | 173 |
| 173 } // namespace android_webview | 174 } // namespace android_webview |
| OLD | NEW |