| 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/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 1341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1352 // mirroring works correctly, add a check here to enforce it. | 1352 // mirroring works correctly, add a check here to enforce it. |
| 1353 delegate_->UpdateEncoding(this, encoding_name); | 1353 delegate_->UpdateEncoding(this, encoding_name); |
| 1354 } | 1354 } |
| 1355 | 1355 |
| 1356 void RenderFrameHostImpl::OnBeginNavigation( | 1356 void RenderFrameHostImpl::OnBeginNavigation( |
| 1357 const CommonNavigationParams& common_params, | 1357 const CommonNavigationParams& common_params, |
| 1358 const BeginNavigationParams& begin_params, | 1358 const BeginNavigationParams& begin_params, |
| 1359 scoped_refptr<ResourceRequestBody> body) { | 1359 scoped_refptr<ResourceRequestBody> body) { |
| 1360 CHECK(base::CommandLine::ForCurrentProcess()->HasSwitch( | 1360 CHECK(base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1361 switches::kEnableBrowserSideNavigation)); | 1361 switches::kEnableBrowserSideNavigation)); |
| 1362 CommonNavigationParams validated_params = common_params; | |
| 1363 GetProcess()->FilterURL(false, &validated_params.url); | |
| 1364 frame_tree_node()->navigator()->OnBeginNavigation( | 1362 frame_tree_node()->navigator()->OnBeginNavigation( |
| 1365 frame_tree_node(), validated_params, begin_params, body); | 1363 frame_tree_node(), common_params, begin_params, body); |
| 1366 } | 1364 } |
| 1367 | 1365 |
| 1368 void RenderFrameHostImpl::OnDispatchLoad() { | 1366 void RenderFrameHostImpl::OnDispatchLoad() { |
| 1369 CHECK(SiteIsolationPolicy::AreCrossProcessFramesPossible()); | 1367 CHECK(SiteIsolationPolicy::AreCrossProcessFramesPossible()); |
| 1370 // Only frames with an out-of-process parent frame should be sending this | 1368 // Only frames with an out-of-process parent frame should be sending this |
| 1371 // message. | 1369 // message. |
| 1372 RenderFrameProxyHost* proxy = | 1370 RenderFrameProxyHost* proxy = |
| 1373 frame_tree_node()->render_manager()->GetProxyToParent(); | 1371 frame_tree_node()->render_manager()->GetProxyToParent(); |
| 1374 if (!proxy) { | 1372 if (!proxy) { |
| 1375 bad_message::ReceivedBadMessage(GetProcess(), | 1373 bad_message::ReceivedBadMessage(GetProcess(), |
| (...skipping 868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2244 BrowserPluginInstanceIDToAXTreeID(value))); | 2242 BrowserPluginInstanceIDToAXTreeID(value))); |
| 2245 break; | 2243 break; |
| 2246 case AX_CONTENT_INT_ATTRIBUTE_LAST: | 2244 case AX_CONTENT_INT_ATTRIBUTE_LAST: |
| 2247 NOTREACHED(); | 2245 NOTREACHED(); |
| 2248 break; | 2246 break; |
| 2249 } | 2247 } |
| 2250 } | 2248 } |
| 2251 } | 2249 } |
| 2252 | 2250 |
| 2253 } // namespace content | 2251 } // namespace content |
| OLD | NEW |