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

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 643793003: Revert "Ensure that the browser’s copy of page id is in sync with the renderer’s." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 | « chrome/common/crash_keys.cc ('k') | content/browser/renderer_host/render_view_host_delegate.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/browser/frame_host/render_frame_host_impl.h" 5 #include "content/browser/frame_host/render_frame_host_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/containers/hash_tables.h" 9 #include "base/containers/hash_tables.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after
1046 void RenderFrameHostImpl::OnDidAssignPageId(int32 page_id) { 1046 void RenderFrameHostImpl::OnDidAssignPageId(int32 page_id) {
1047 // Update the RVH's current page ID so that future IPCs from the renderer 1047 // Update the RVH's current page ID so that future IPCs from the renderer
1048 // correspond to the new page. 1048 // correspond to the new page.
1049 render_view_host_->page_id_ = page_id; 1049 render_view_host_->page_id_ = page_id;
1050 } 1050 }
1051 1051
1052 void RenderFrameHostImpl::OnUpdateTitle( 1052 void RenderFrameHostImpl::OnUpdateTitle(
1053 int32 page_id, 1053 int32 page_id,
1054 const base::string16& title, 1054 const base::string16& title,
1055 blink::WebTextDirection title_direction) { 1055 blink::WebTextDirection title_direction) {
1056 CHECK_EQ(render_view_host_->page_id_, page_id);
1057 // This message is only sent for top-level frames. TODO(avi): when frame tree 1056 // This message is only sent for top-level frames. TODO(avi): when frame tree
1058 // mirroring works correctly, add a check here to enforce it. 1057 // mirroring works correctly, add a check here to enforce it.
1059 if (title.length() > kMaxTitleChars) { 1058 if (title.length() > kMaxTitleChars) {
1060 NOTREACHED() << "Renderer sent too many characters in title."; 1059 NOTREACHED() << "Renderer sent too many characters in title.";
1061 return; 1060 return;
1062 } 1061 }
1063 1062
1064 delegate_->UpdateTitle(this, page_id, title, 1063 delegate_->UpdateTitle(this, page_id, title,
1065 WebTextDirectionToChromeTextDirection( 1064 WebTextDirectionToChromeTextDirection(
1066 title_direction)); 1065 title_direction));
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after
1565 // Clear any state if a pending navigation is canceled or preempted. 1564 // Clear any state if a pending navigation is canceled or preempted.
1566 if (suspended_nav_params_) 1565 if (suspended_nav_params_)
1567 suspended_nav_params_.reset(); 1566 suspended_nav_params_.reset();
1568 1567
1569 TRACE_EVENT_ASYNC_END0("navigation", 1568 TRACE_EVENT_ASYNC_END0("navigation",
1570 "RenderFrameHostImpl navigation suspended", this); 1569 "RenderFrameHostImpl navigation suspended", this);
1571 navigations_suspended_ = false; 1570 navigations_suspended_ = false;
1572 } 1571 }
1573 1572
1574 } // namespace content 1573 } // namespace content
OLDNEW
« no previous file with comments | « chrome/common/crash_keys.cc ('k') | content/browser/renderer_host/render_view_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698