Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(249)

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 972313002: Make <webview> use out-of-process iframe architecture. (Closed) Base URL: ssh://saopaulo.wat/mnt/dev/shared/src@testoopif2z-better-chrome
Patch Set: add basic postMessage test Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "content/renderer/render_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 webview()->settings()->setPreferCompositingToLCDTextEnabled( 724 webview()->settings()->setPreferCompositingToLCDTextEnabled(
725 PreferCompositingToLCDText(compositor_deps_, device_scale_factor_)); 725 PreferCompositingToLCDText(compositor_deps_, device_scale_factor_));
726 webview()->settings()->setThreadedScrollingEnabled( 726 webview()->settings()->setThreadedScrollingEnabled(
727 !command_line.HasSwitch(switches::kDisableThreadedScrolling)); 727 !command_line.HasSwitch(switches::kDisableThreadedScrolling));
728 webview()->settings()->setRootLayerScrolls( 728 webview()->settings()->setRootLayerScrolls(
729 command_line.HasSwitch(switches::kRootLayerScrolls)); 729 command_line.HasSwitch(switches::kRootLayerScrolls));
730 730
731 ApplyWebPreferences(webkit_preferences_, webview()); 731 ApplyWebPreferences(webkit_preferences_, webview());
732 732
733 RenderFrameProxy* proxy = NULL; 733 RenderFrameProxy* proxy = NULL;
734 if (params.proxy_routing_id != MSG_ROUTING_NONE) { 734 if (params.proxy_routing_id != MSG_ROUTING_NONE &&
735 // Do not create a proxy here if this is a swapped out RenderView for
736 // a guest. The proxy will be created in RenderFrameImpl::OnSwapOut().
Charlie Reis 2015/05/19 07:12:31 nit: Please put comments before (not in) the condi
lazyboy 2015/05/21 23:23:48 Done.
737 !params.is_guest) {
735 CHECK(params.swapped_out); 738 CHECK(params.swapped_out);
736 proxy = RenderFrameProxy::CreateProxyToReplaceFrame( 739 proxy = RenderFrameProxy::CreateProxyToReplaceFrame(
737 main_render_frame_, params.proxy_routing_id); 740 main_render_frame_, params.proxy_routing_id);
738 main_render_frame_->set_render_frame_proxy(proxy); 741 main_render_frame_->set_render_frame_proxy(proxy);
739 } 742 }
740 743
741 // In --site-per-process, just use the WebRemoteFrame as the main frame. 744 // In --site-per-process, just use the WebRemoteFrame as the main frame.
742 if (command_line.HasSwitch(switches::kSitePerProcess) && proxy) { 745 if (command_line.HasSwitch(switches::kSitePerProcess) && proxy) {
743 webview()->setMainFrame(proxy->web_frame()); 746 webview()->setMainFrame(proxy->web_frame());
744 // Initialize the WebRemoteFrame with information replicated from the 747 // Initialize the WebRemoteFrame with information replicated from the
(...skipping 3016 matching lines...) Expand 10 before | Expand all | Expand 10 after
3761 std::vector<gfx::Size> sizes; 3764 std::vector<gfx::Size> sizes;
3762 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); 3765 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes);
3763 if (!url.isEmpty()) 3766 if (!url.isEmpty())
3764 urls.push_back( 3767 urls.push_back(
3765 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); 3768 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes));
3766 } 3769 }
3767 SendUpdateFaviconURL(urls); 3770 SendUpdateFaviconURL(urls);
3768 } 3771 }
3769 3772
3770 } // namespace content 3773 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698