OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/renderer_host/render_view_host_impl.h" | 5 #include "content/browser/renderer_host/render_view_host_impl.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 1352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1363 } | 1363 } |
1364 | 1364 |
1365 void RenderViewHostImpl::OnMsgOpenURL( | 1365 void RenderViewHostImpl::OnMsgOpenURL( |
1366 const ViewHostMsg_OpenURL_Params& params) { | 1366 const ViewHostMsg_OpenURL_Params& params) { |
1367 GURL validated_url(params.url); | 1367 GURL validated_url(params.url); |
1368 FilterURL(ChildProcessSecurityPolicyImpl::GetInstance(), | 1368 FilterURL(ChildProcessSecurityPolicyImpl::GetInstance(), |
1369 GetProcess(), false, &validated_url); | 1369 GetProcess(), false, &validated_url); |
1370 | 1370 |
1371 delegate_->RequestOpenURL( | 1371 delegate_->RequestOpenURL( |
1372 this, validated_url, params.referrer, params.disposition, params.frame_id, | 1372 this, validated_url, params.referrer, params.disposition, params.frame_id, |
1373 params.is_cross_site_redirect); | 1373 params.is_cross_site_redirect, params.extra_header, params.request_body); |
1374 } | 1374 } |
1375 | 1375 |
1376 void RenderViewHostImpl::OnMsgDidContentsPreferredSizeChange( | 1376 void RenderViewHostImpl::OnMsgDidContentsPreferredSizeChange( |
1377 const gfx::Size& new_size) { | 1377 const gfx::Size& new_size) { |
1378 delegate_->UpdatePreferredSize(new_size); | 1378 delegate_->UpdatePreferredSize(new_size); |
1379 } | 1379 } |
1380 | 1380 |
1381 void RenderViewHostImpl::OnRenderAutoResized(const gfx::Size& new_size) { | 1381 void RenderViewHostImpl::OnRenderAutoResized(const gfx::Size& new_size) { |
1382 delegate_->ResizeDueToAutoResize(new_size); | 1382 delegate_->ResizeDueToAutoResize(new_size); |
1383 } | 1383 } |
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2028 is_waiting_for_beforeunload_ack_ = false; | 2028 is_waiting_for_beforeunload_ack_ = false; |
2029 is_waiting_for_unload_ack_ = false; | 2029 is_waiting_for_unload_ack_ = false; |
2030 has_timed_out_on_unload_ = false; | 2030 has_timed_out_on_unload_ = false; |
2031 } | 2031 } |
2032 | 2032 |
2033 void RenderViewHostImpl::ClearPowerSaveBlockers() { | 2033 void RenderViewHostImpl::ClearPowerSaveBlockers() { |
2034 STLDeleteValues(&power_save_blockers_); | 2034 STLDeleteValues(&power_save_blockers_); |
2035 } | 2035 } |
2036 | 2036 |
2037 } // namespace content | 2037 } // namespace content |
OLD | NEW |