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 1345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1356 } | 1356 } |
1357 delegate_->ShowContextMenu(validated_params, type); | 1357 delegate_->ShowContextMenu(validated_params, type); |
1358 } | 1358 } |
1359 | 1359 |
1360 void RenderViewHostImpl::OnMsgToggleFullscreen(bool enter_fullscreen) { | 1360 void RenderViewHostImpl::OnMsgToggleFullscreen(bool enter_fullscreen) { |
1361 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 1361 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
1362 delegate_->ToggleFullscreenMode(enter_fullscreen); | 1362 delegate_->ToggleFullscreenMode(enter_fullscreen); |
1363 WasResized(); | 1363 WasResized(); |
1364 } | 1364 } |
1365 | 1365 |
1366 void RenderViewHostImpl::OnMsgOpenURL(const GURL& url, | 1366 void RenderViewHostImpl::OnMsgOpenURL( |
1367 const Referrer& referrer, | 1367 const ViewHostMsg_OpenURL_Params& params) { |
1368 WindowOpenDisposition disposition, | 1368 GURL validated_url(params.url); |
1369 int64 source_frame_id) { | |
1370 GURL validated_url(url); | |
1371 FilterURL(ChildProcessSecurityPolicyImpl::GetInstance(), | 1369 FilterURL(ChildProcessSecurityPolicyImpl::GetInstance(), |
1372 GetProcess(), false, &validated_url); | 1370 GetProcess(), false, &validated_url); |
1373 | 1371 |
1374 delegate_->RequestOpenURL( | 1372 delegate_->RequestOpenURL( |
1375 this, validated_url, referrer, disposition, source_frame_id); | 1373 this, validated_url, params.referrer, params.disposition, params.frame_id, |
| 1374 params.extra_header, params.request_body); |
1376 } | 1375 } |
1377 | 1376 |
1378 void RenderViewHostImpl::OnMsgDidContentsPreferredSizeChange( | 1377 void RenderViewHostImpl::OnMsgDidContentsPreferredSizeChange( |
1379 const gfx::Size& new_size) { | 1378 const gfx::Size& new_size) { |
1380 delegate_->UpdatePreferredSize(new_size); | 1379 delegate_->UpdatePreferredSize(new_size); |
1381 } | 1380 } |
1382 | 1381 |
1383 void RenderViewHostImpl::OnRenderAutoResized(const gfx::Size& new_size) { | 1382 void RenderViewHostImpl::OnRenderAutoResized(const gfx::Size& new_size) { |
1384 delegate_->ResizeDueToAutoResize(new_size); | 1383 delegate_->ResizeDueToAutoResize(new_size); |
1385 } | 1384 } |
(...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2029 is_waiting_for_beforeunload_ack_ = false; | 2028 is_waiting_for_beforeunload_ack_ = false; |
2030 is_waiting_for_unload_ack_ = false; | 2029 is_waiting_for_unload_ack_ = false; |
2031 has_timed_out_on_unload_ = false; | 2030 has_timed_out_on_unload_ = false; |
2032 } | 2031 } |
2033 | 2032 |
2034 void RenderViewHostImpl::ClearPowerSaveBlockers() { | 2033 void RenderViewHostImpl::ClearPowerSaveBlockers() { |
2035 STLDeleteValues(&power_save_blockers_); | 2034 STLDeleteValues(&power_save_blockers_); |
2036 } | 2035 } |
2037 | 2036 |
2038 } // namespace content | 2037 } // namespace content |
OLD | NEW |