OLD | NEW |
---|---|
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 3793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3804 // This message needs to be sent before any of allowScripts(), | 3804 // This message needs to be sent before any of allowScripts(), |
3805 // allowImages(), allowPlugins() is called for the new page, so that when | 3805 // allowImages(), allowPlugins() is called for the new page, so that when |
3806 // these functions send a ViewHostMsg_ContentBlocked message, it arrives | 3806 // these functions send a ViewHostMsg_ContentBlocked message, it arrives |
3807 // after the FrameHostMsg_DidCommitProvisionalLoad message. | 3807 // after the FrameHostMsg_DidCommitProvisionalLoad message. |
3808 Send(new FrameHostMsg_DidCommitProvisionalLoad(routing_id_, params)); | 3808 Send(new FrameHostMsg_DidCommitProvisionalLoad(routing_id_, params)); |
3809 } else { | 3809 } else { |
3810 // Subframe navigation: the type depends on whether this navigation | 3810 // Subframe navigation: the type depends on whether this navigation |
3811 // generated a new session history entry. When they do generate a session | 3811 // generated a new session history entry. When they do generate a session |
3812 // history entry, it means the user initiated the navigation and we should | 3812 // history entry, it means the user initiated the navigation and we should |
3813 // mark it as such. | 3813 // mark it as such. |
3814 bool is_history_navigation = commit_type == blink::WebBackForwardCommit; | 3814 if (commit_type == blink::WebStandardCommit) |
Avi (use Gerrit)
2015/02/17 15:51:28
It turns out that I should have been looking at th
Charlie Reis
2015/02/18 17:57:37
Ok. What's an example that shows the difference?
Avi (use Gerrit)
2015/02/18 18:33:12
The reload. That's a blink::WebHistoryInertCommit
Charlie Reis
2015/02/18 18:45:04
Acknowledged.
| |
3815 if (is_history_navigation || ds->replacesCurrentHistoryItem()) | 3815 params.transition = ui::PAGE_TRANSITION_MANUAL_SUBFRAME; |
3816 else | |
3816 params.transition = ui::PAGE_TRANSITION_AUTO_SUBFRAME; | 3817 params.transition = ui::PAGE_TRANSITION_AUTO_SUBFRAME; |
3817 else | |
3818 params.transition = ui::PAGE_TRANSITION_MANUAL_SUBFRAME; | |
3819 | 3818 |
3820 DCHECK(!navigation_state->history_list_was_cleared()); | 3819 DCHECK(!navigation_state->history_list_was_cleared()); |
3821 params.history_list_was_cleared = false; | 3820 params.history_list_was_cleared = false; |
3822 params.report_type = FrameMsg_UILoadMetricsReportType::NO_REPORT; | 3821 params.report_type = FrameMsg_UILoadMetricsReportType::NO_REPORT; |
3823 | 3822 |
3824 // Don't send this message while the subframe is swapped out. | 3823 // Don't send this message while the subframe is swapped out. |
3825 if (!is_swapped_out()) | 3824 if (!is_swapped_out()) |
3826 Send(new FrameHostMsg_DidCommitProvisionalLoad(routing_id_, params)); | 3825 Send(new FrameHostMsg_DidCommitProvisionalLoad(routing_id_, params)); |
3827 } | 3826 } |
3828 | 3827 |
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4444 | 4443 |
4445 #if defined(ENABLE_BROWSER_CDMS) | 4444 #if defined(ENABLE_BROWSER_CDMS) |
4446 RendererCdmManager* RenderFrameImpl::GetCdmManager() { | 4445 RendererCdmManager* RenderFrameImpl::GetCdmManager() { |
4447 if (!cdm_manager_) | 4446 if (!cdm_manager_) |
4448 cdm_manager_ = new RendererCdmManager(this); | 4447 cdm_manager_ = new RendererCdmManager(this); |
4449 return cdm_manager_; | 4448 return cdm_manager_; |
4450 } | 4449 } |
4451 #endif // defined(ENABLE_BROWSER_CDMS) | 4450 #endif // defined(ENABLE_BROWSER_CDMS) |
4452 | 4451 |
4453 } // namespace content | 4452 } // namespace content |
OLD | NEW |