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 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 5179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5190 } | 5190 } |
5191 | 5191 |
5192 void RenderFrameImpl::FocusedNodeChangedForAccessibility(const WebNode& node) { | 5192 void RenderFrameImpl::FocusedNodeChangedForAccessibility(const WebNode& node) { |
5193 if (render_accessibility()) | 5193 if (render_accessibility()) |
5194 render_accessibility()->AccessibilityFocusedNodeChanged(node); | 5194 render_accessibility()->AccessibilityFocusedNodeChanged(node); |
5195 } | 5195 } |
5196 | 5196 |
5197 // PlzNavigate | 5197 // PlzNavigate |
5198 void RenderFrameImpl::OnCommitNavigation( | 5198 void RenderFrameImpl::OnCommitNavigation( |
5199 const ResourceResponseHead& response, | 5199 const ResourceResponseHead& response, |
5200 const GURL& stream_url, | 5200 mojo::DataPipeConsumerHandle handle, |
5201 const CommonNavigationParams& common_params, | 5201 const CommonNavigationParams& common_params, |
5202 const RequestNavigationParams& request_params) { | 5202 const RequestNavigationParams& request_params) { |
5203 CHECK(IsBrowserSideNavigationEnabled()); | 5203 CHECK(IsBrowserSideNavigationEnabled()); |
5204 // This will override the url requested by the WebURLLoader, as well as | 5204 // This will override the url requested by the WebURLLoader, as well as |
5205 // provide it with the response to the request. | 5205 // provide it with the response to the request. |
5206 std::unique_ptr<StreamOverrideParameters> stream_override( | 5206 std::unique_ptr<StreamOverrideParameters> stream_override( |
5207 new StreamOverrideParameters()); | 5207 new StreamOverrideParameters()); |
5208 stream_override->stream_url = stream_url; | 5208 stream_override->consumer_handle = mojo::ScopedDataPipeConsumerHandle(handle); |
5209 stream_override->response = response; | 5209 stream_override->response = response; |
5210 stream_override->redirects = request_params.redirects; | 5210 stream_override->redirects = request_params.redirects; |
5211 stream_override->redirect_responses = request_params.redirect_response; | 5211 stream_override->redirect_responses = request_params.redirect_response; |
5212 stream_override->redirect_infos = request_params.redirect_infos; | 5212 stream_override->redirect_infos = request_params.redirect_infos; |
5213 | 5213 |
5214 // If the request was initiated in the context of a user gesture then make | 5214 // If the request was initiated in the context of a user gesture then make |
5215 // sure that the navigation also executes in the context of a user gesture. | 5215 // sure that the navigation also executes in the context of a user gesture. |
5216 std::unique_ptr<blink::WebScopedUserGesture> gesture( | 5216 std::unique_ptr<blink::WebScopedUserGesture> gesture( |
5217 request_params.has_user_gesture ? new blink::WebScopedUserGesture(frame_) | 5217 request_params.has_user_gesture ? new blink::WebScopedUserGesture(frame_) |
5218 : nullptr); | 5218 : nullptr); |
(...skipping 1753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6972 policy(info.defaultPolicy), | 6972 policy(info.defaultPolicy), |
6973 replaces_current_history_item(info.replacesCurrentHistoryItem), | 6973 replaces_current_history_item(info.replacesCurrentHistoryItem), |
6974 history_navigation_in_new_child_frame( | 6974 history_navigation_in_new_child_frame( |
6975 info.isHistoryNavigationInNewChildFrame), | 6975 info.isHistoryNavigationInNewChildFrame), |
6976 client_redirect(info.isClientRedirect), | 6976 client_redirect(info.isClientRedirect), |
6977 cache_disabled(info.isCacheDisabled), | 6977 cache_disabled(info.isCacheDisabled), |
6978 form(info.form), | 6978 form(info.form), |
6979 source_location(info.sourceLocation) {} | 6979 source_location(info.sourceLocation) {} |
6980 | 6980 |
6981 } // namespace content | 6981 } // namespace content |
OLD | NEW |