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

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

Issue 1785153005: Remove SiteIsolationPolicy::IsSwappedOutStateForbidden(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase on ToT. Created 4 years, 9 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
« no previous file with comments | « content/renderer/render_view_browsertest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 677 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 "rvinit_main_frame_id", base::IntToString(params.main_frame_routing_id)); 688 "rvinit_main_frame_id", base::IntToString(params.main_frame_routing_id));
689 689
690 if (params.main_frame_routing_id != MSG_ROUTING_NONE) { 690 if (params.main_frame_routing_id != MSG_ROUTING_NONE) {
691 main_render_frame_ = RenderFrameImpl::CreateMainFrame( 691 main_render_frame_ = RenderFrameImpl::CreateMainFrame(
692 this, params.main_frame_routing_id, params.main_frame_widget_routing_id, 692 this, params.main_frame_routing_id, params.main_frame_widget_routing_id,
693 params.hidden, screen_info(), compositor_deps_, opener_frame); 693 params.hidden, screen_info(), compositor_deps_, opener_frame);
694 } 694 }
695 695
696 if (params.proxy_routing_id != MSG_ROUTING_NONE) { 696 if (params.proxy_routing_id != MSG_ROUTING_NONE) {
697 CHECK(params.swapped_out); 697 CHECK(params.swapped_out);
698 if (main_render_frame_) { 698 RenderFrameProxy::CreateFrameProxy(
699 CHECK(!SiteIsolationPolicy::IsSwappedOutStateForbidden()); 699 params.proxy_routing_id, routing_id(), params.opener_frame_route_id,
700 RenderFrameProxy* proxy = RenderFrameProxy::CreateProxyToReplaceFrame( 700 MSG_ROUTING_NONE, params.replicated_frame_state);
701 main_render_frame_, params.proxy_routing_id,
702 blink::WebTreeScopeType::Document);
703 main_render_frame_->set_render_frame_proxy(proxy);
704 } else {
705 CHECK(SiteIsolationPolicy::IsSwappedOutStateForbidden());
706 RenderFrameProxy::CreateFrameProxy(
707 params.proxy_routing_id, routing_id(), params.opener_frame_route_id,
708 MSG_ROUTING_NONE, params.replicated_frame_state);
709 }
710 } 701 }
711 702
712 if (main_render_frame_) 703 if (main_render_frame_)
713 main_render_frame_->Initialize(); 704 main_render_frame_->Initialize();
714 705
715 #if defined(OS_ANDROID) 706 #if defined(OS_ANDROID)
716 content_detectors_.push_back(make_scoped_ptr(new AddressDetector())); 707 content_detectors_.push_back(make_scoped_ptr(new AddressDetector()));
717 const std::string& contry_iso = 708 const std::string& contry_iso =
718 params.renderer_preferences.network_contry_iso; 709 params.renderer_preferences.network_contry_iso;
719 if (!contry_iso.empty()) { 710 if (!contry_iso.empty()) {
(...skipping 2820 matching lines...) Expand 10 before | Expand all | Expand 10 after
3540 if (IsUseZoomForDSFEnabled()) { 3531 if (IsUseZoomForDSFEnabled()) {
3541 webview()->setZoomFactorForDeviceScaleFactor(device_scale_factor_); 3532 webview()->setZoomFactorForDeviceScaleFactor(device_scale_factor_);
3542 } else { 3533 } else {
3543 webview()->setDeviceScaleFactor(device_scale_factor_); 3534 webview()->setDeviceScaleFactor(device_scale_factor_);
3544 } 3535 }
3545 webview()->settings()->setPreferCompositingToLCDTextEnabled( 3536 webview()->settings()->setPreferCompositingToLCDTextEnabled(
3546 PreferCompositingToLCDText(compositor_deps_, device_scale_factor_)); 3537 PreferCompositingToLCDText(compositor_deps_, device_scale_factor_));
3547 } 3538 }
3548 3539
3549 } // namespace content 3540 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_view_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698