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