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

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

Issue 839413004: Remove the use of page id from building the commit params. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 | « no previous file | 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 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/renderer/render_frame_impl.h" 5 #include "content/renderer/render_frame_impl.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 3664 matching lines...) Expand 10 before | Expand all | Expand 10 after
3675 3675
3676 // This message needs to be sent before any of allowScripts(), 3676 // This message needs to be sent before any of allowScripts(),
3677 // allowImages(), allowPlugins() is called for the new page, so that when 3677 // allowImages(), allowPlugins() is called for the new page, so that when
3678 // these functions send a ViewHostMsg_ContentBlocked message, it arrives 3678 // these functions send a ViewHostMsg_ContentBlocked message, it arrives
3679 // after the FrameHostMsg_DidCommitProvisionalLoad message. 3679 // after the FrameHostMsg_DidCommitProvisionalLoad message.
3680 Send(new FrameHostMsg_DidCommitProvisionalLoad(routing_id_, params)); 3680 Send(new FrameHostMsg_DidCommitProvisionalLoad(routing_id_, params));
3681 } else { 3681 } else {
3682 // Subframe navigation: the type depends on whether this navigation 3682 // Subframe navigation: the type depends on whether this navigation
3683 // generated a new session history entry. When they do generate a session 3683 // generated a new session history entry. When they do generate a session
3684 // history entry, it means the user initiated the navigation and we should 3684 // history entry, it means the user initiated the navigation and we should
3685 // mark it as such. This test checks if this is the first time 3685 // mark it as such.
3686 // SendDidCommitProvisionalLoad has been called since WillNavigateToURL was 3686 if (ds->replacesCurrentHistoryItem())
Charlie Reis 2015/01/14 18:18:40 Interesting. This is true for the first navigatio
Avi (use Gerrit) 2015/01/14 21:23:20 Yes, it is. That's the only way in my rework that
3687 // called to initiate the load. 3687 params.transition = ui::PAGE_TRANSITION_AUTO_SUBFRAME;
3688 if (render_view_->page_id_ > render_view_->last_page_id_sent_to_browser_) 3688 else
Charlie Reis 2015/01/14 18:18:40 If this works, that means last_page_id_sent_to_bro
3689 params.transition = ui::PAGE_TRANSITION_MANUAL_SUBFRAME; 3689 params.transition = ui::PAGE_TRANSITION_MANUAL_SUBFRAME;
3690 else
3691 params.transition = ui::PAGE_TRANSITION_AUTO_SUBFRAME;
3692 3690
3693 DCHECK(!navigation_state->history_list_was_cleared()); 3691 DCHECK(!navigation_state->history_list_was_cleared());
3694 params.history_list_was_cleared = false; 3692 params.history_list_was_cleared = false;
3695 params.report_type = FrameMsg_UILoadMetricsReportType::NO_REPORT; 3693 params.report_type = FrameMsg_UILoadMetricsReportType::NO_REPORT;
3696 3694
3697 // Don't send this message while the subframe is swapped out. 3695 // Don't send this message while the subframe is swapped out.
3698 if (!is_swapped_out()) 3696 if (!is_swapped_out())
3699 Send(new FrameHostMsg_DidCommitProvisionalLoad(routing_id_, params)); 3697 Send(new FrameHostMsg_DidCommitProvisionalLoad(routing_id_, params));
3700 } 3698 }
3701 3699
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after
4331 4329
4332 #if defined(ENABLE_BROWSER_CDMS) 4330 #if defined(ENABLE_BROWSER_CDMS)
4333 RendererCdmManager* RenderFrameImpl::GetCdmManager() { 4331 RendererCdmManager* RenderFrameImpl::GetCdmManager() {
4334 if (!cdm_manager_) 4332 if (!cdm_manager_)
4335 cdm_manager_ = new RendererCdmManager(this); 4333 cdm_manager_ = new RendererCdmManager(this);
4336 return cdm_manager_; 4334 return cdm_manager_;
4337 } 4335 }
4338 #endif // defined(ENABLE_BROWSER_CDMS) 4336 #endif // defined(ENABLE_BROWSER_CDMS)
4339 4337
4340 } // namespace content 4338 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698