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

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

Issue 1258273006: Remove page id from title and state updating. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@switch
Patch Set: comment nit Created 4 years, 2 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') | content/test/test_render_view_host.h » ('j') | 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 #include <memory> 9 #include <memory>
10 10
(...skipping 1444 matching lines...) Expand 10 before | Expand all | Expand 10 after
1455 /////////////////////////////////////////////////////////////////////////////// 1455 ///////////////////////////////////////////////////////////////////////////////
1456 1456
1457 void RenderViewImpl::SendUpdateState() { 1457 void RenderViewImpl::SendUpdateState() {
1458 // We don't use this path in OOPIF-enabled modes. 1458 // We don't use this path in OOPIF-enabled modes.
1459 DCHECK(!SiteIsolationPolicy::UseSubframeNavigationEntries()); 1459 DCHECK(!SiteIsolationPolicy::UseSubframeNavigationEntries());
1460 1460
1461 HistoryEntry* entry = history_controller_->GetCurrentEntry(); 1461 HistoryEntry* entry = history_controller_->GetCurrentEntry();
1462 if (!entry) 1462 if (!entry)
1463 return; 1463 return;
1464 1464
1465 Send(new ViewHostMsg_UpdateState(GetRoutingID(), page_id_, 1465 Send(new ViewHostMsg_UpdateState(GetRoutingID(),
1466 HistoryEntryToPageState(entry))); 1466 HistoryEntryToPageState(entry)));
1467 } 1467 }
1468 1468
1469 void RenderViewImpl::SendFrameStateUpdates() { 1469 void RenderViewImpl::SendFrameStateUpdates() {
1470 // We only use this path in OOPIF-enabled modes. 1470 // We only use this path in OOPIF-enabled modes.
1471 DCHECK(SiteIsolationPolicy::UseSubframeNavigationEntries()); 1471 DCHECK(SiteIsolationPolicy::UseSubframeNavigationEntries());
1472 1472
1473 // Tell each frame with pending state to send its UpdateState message. 1473 // Tell each frame with pending state to send its UpdateState message.
1474 for (int render_frame_routing_id : frames_with_pending_state_) { 1474 for (int render_frame_routing_id : frames_with_pending_state_) {
1475 RenderFrameImpl* frame = 1475 RenderFrameImpl* frame =
(...skipping 1549 matching lines...) Expand 10 before | Expand all | Expand 10 after
3025 if (IsUseZoomForDSFEnabled()) { 3025 if (IsUseZoomForDSFEnabled()) {
3026 webview()->setZoomFactorForDeviceScaleFactor(device_scale_factor_); 3026 webview()->setZoomFactorForDeviceScaleFactor(device_scale_factor_);
3027 } else { 3027 } else {
3028 webview()->setDeviceScaleFactor(device_scale_factor_); 3028 webview()->setDeviceScaleFactor(device_scale_factor_);
3029 } 3029 }
3030 webview()->settings()->setPreferCompositingToLCDTextEnabled( 3030 webview()->settings()->setPreferCompositingToLCDTextEnabled(
3031 PreferCompositingToLCDText(compositor_deps_, device_scale_factor_)); 3031 PreferCompositingToLCDText(compositor_deps_, device_scale_factor_));
3032 } 3032 }
3033 3033
3034 } // namespace content 3034 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_view_browsertest.cc ('k') | content/test/test_render_view_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698