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" |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "components/web_restrictions/browser/web_restrictions_mojo_implementati
on.h" | 14 #include "components/web_restrictions/browser/web_restrictions_mojo_implementati
on.h" |
15 #include "content/public/browser/android/content_view_core.h" | 15 #include "content/public/browser/android/content_view_core.h" |
16 #include "content/public/browser/navigation_handle.h" | 16 #include "content/public/browser/navigation_handle.h" |
17 #include "content/public/browser/render_frame_host.h" | 17 #include "content/public/browser/render_frame_host.h" |
18 #include "content/public/browser/render_process_host.h" | 18 #include "content/public/browser/render_process_host.h" |
19 #include "content/public/browser/render_view_host.h" | 19 #include "content/public/browser/render_view_host.h" |
20 #include "content/public/browser/user_metrics.h" | |
21 #include "content/public/browser/web_contents.h" | 20 #include "content/public/browser/web_contents.h" |
22 #include "services/service_manager/public/cpp/interface_registry.h" | 21 #include "services/service_manager/public/cpp/interface_registry.h" |
23 | 22 |
24 namespace android_webview { | 23 namespace android_webview { |
25 | 24 |
26 AwRenderViewHostExt::AwRenderViewHostExt( | 25 AwRenderViewHostExt::AwRenderViewHostExt( |
27 AwRenderViewHostExtClient* client, content::WebContents* contents) | 26 AwRenderViewHostExtClient* client, content::WebContents* contents) |
28 : content::WebContentsObserver(contents), | 27 : content::WebContentsObserver(contents), |
29 client_(client), | 28 client_(client), |
30 background_color_(SK_ColorWHITE), | 29 background_color_(SK_ColorWHITE), |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 content::RenderFrameHost* render_frame_host, | 233 content::RenderFrameHost* render_frame_host, |
235 const gfx::Size& contents_size) { | 234 const gfx::Size& contents_size) { |
236 // Only makes sense coming from the main frame of the current frame tree. | 235 // Only makes sense coming from the main frame of the current frame tree. |
237 if (render_frame_host != web_contents()->GetMainFrame()) | 236 if (render_frame_host != web_contents()->GetMainFrame()) |
238 return; | 237 return; |
239 | 238 |
240 client_->OnWebLayoutContentsSizeChanged(contents_size); | 239 client_->OnWebLayoutContentsSizeChanged(contents_size); |
241 } | 240 } |
242 | 241 |
243 } // namespace android_webview | 242 } // namespace android_webview |
OLD | NEW |