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 5174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5185 | 5185 |
5186 for (auto& observer : observers_) | 5186 for (auto& observer : observers_) |
5187 observer.FocusedNodeChanged(node); | 5187 observer.FocusedNodeChanged(node); |
5188 } | 5188 } |
5189 | 5189 |
5190 void RenderFrameImpl::FocusedNodeChangedForAccessibility(const WebNode& node) { | 5190 void RenderFrameImpl::FocusedNodeChangedForAccessibility(const WebNode& node) { |
5191 if (render_accessibility()) | 5191 if (render_accessibility()) |
5192 render_accessibility()->AccessibilityFocusedNodeChanged(node); | 5192 render_accessibility()->AccessibilityFocusedNodeChanged(node); |
5193 } | 5193 } |
5194 | 5194 |
| 5195 mojom::FrameHostIPC* RenderFrameImpl::GetFrameHostIPC() { |
| 5196 if (!frame_host_ipc_) |
| 5197 GetRemoteAssociatedInterfaces()->GetInterface(&frame_host_ipc_); |
| 5198 return frame_host_ipc_.get(); |
| 5199 } |
| 5200 |
5195 // PlzNavigate | 5201 // PlzNavigate |
5196 void RenderFrameImpl::OnCommitNavigation( | 5202 void RenderFrameImpl::OnCommitNavigation( |
5197 const ResourceResponseHead& response, | 5203 const ResourceResponseHead& response, |
5198 const GURL& stream_url, | 5204 const GURL& stream_url, |
5199 mojo::DataPipeConsumerHandle handle, | 5205 mojo::DataPipeConsumerHandle handle, |
5200 const CommonNavigationParams& common_params, | 5206 const CommonNavigationParams& common_params, |
5201 const RequestNavigationParams& request_params) { | 5207 const RequestNavigationParams& request_params) { |
5202 CHECK(IsBrowserSideNavigationEnabled()); | 5208 CHECK(IsBrowserSideNavigationEnabled()); |
5203 // This will override the url requested by the WebURLLoader, as well as | 5209 // This will override the url requested by the WebURLLoader, as well as |
5204 // provide it with the response to the request. | 5210 // provide it with the response to the request. |
(...skipping 1777 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6982 policy(info.default_policy), | 6988 policy(info.default_policy), |
6983 replaces_current_history_item(info.replaces_current_history_item), | 6989 replaces_current_history_item(info.replaces_current_history_item), |
6984 history_navigation_in_new_child_frame( | 6990 history_navigation_in_new_child_frame( |
6985 info.is_history_navigation_in_new_child_frame), | 6991 info.is_history_navigation_in_new_child_frame), |
6986 client_redirect(info.is_client_redirect), | 6992 client_redirect(info.is_client_redirect), |
6987 cache_disabled(info.is_cache_disabled), | 6993 cache_disabled(info.is_cache_disabled), |
6988 form(info.form), | 6994 form(info.form), |
6989 source_location(info.source_location) {} | 6995 source_location(info.source_location) {} |
6990 | 6996 |
6991 } // namespace content | 6997 } // namespace content |
OLD | NEW |