| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 if (!widget || !widget->IsRenderView()) | 117 if (!widget || !widget->IsRenderView()) |
| 118 return NULL; | 118 return NULL; |
| 119 return static_cast<RenderViewHostImpl*>(RenderWidgetHostImpl::From(widget)); | 119 return static_cast<RenderViewHostImpl*>(RenderWidgetHostImpl::From(widget)); |
| 120 } | 120 } |
| 121 | 121 |
| 122 // static | 122 // static |
| 123 RenderViewHost* RenderViewHost::From(RenderWidgetHost* rwh) { | 123 RenderViewHost* RenderViewHost::From(RenderWidgetHost* rwh) { |
| 124 return static_cast<RenderViewHostImpl*>(RenderWidgetHostImpl::From(rwh)); | 124 return static_cast<RenderViewHostImpl*>(RenderWidgetHostImpl::From(rwh)); |
| 125 } | 125 } |
| 126 | 126 |
| 127 // static |
| 128 void RenderViewHost::FilterURL(int renderer_id, |
| 129 bool empty_allowed, |
| 130 GURL* url) { |
| 131 RenderViewHostImpl::FilterURL(ChildProcessSecurityPolicyImpl::GetInstance(), |
| 132 renderer_id, empty_allowed, url); |
| 133 } |
| 134 |
| 127 /////////////////////////////////////////////////////////////////////////////// | 135 /////////////////////////////////////////////////////////////////////////////// |
| 128 // RenderViewHostImpl, public: | 136 // RenderViewHostImpl, public: |
| 129 | 137 |
| 130 // static | 138 // static |
| 131 RenderViewHostImpl* RenderViewHostImpl::FromID(int render_process_id, | 139 RenderViewHostImpl* RenderViewHostImpl::FromID(int render_process_id, |
| 132 int render_view_id) { | 140 int render_view_id) { |
| 133 return static_cast<RenderViewHostImpl*>( | 141 return static_cast<RenderViewHostImpl*>( |
| 134 RenderViewHost::FromID(render_process_id, render_view_id)); | 142 RenderViewHost::FromID(render_process_id, render_view_id)); |
| 135 } | 143 } |
| 136 | 144 |
| (...skipping 1712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1849 // can cause navigations to be ignored in OnMsgNavigate. | 1857 // can cause navigations to be ignored in OnMsgNavigate. |
| 1850 is_waiting_for_beforeunload_ack_ = false; | 1858 is_waiting_for_beforeunload_ack_ = false; |
| 1851 is_waiting_for_unload_ack_ = false; | 1859 is_waiting_for_unload_ack_ = false; |
| 1852 } | 1860 } |
| 1853 | 1861 |
| 1854 void RenderViewHostImpl::ClearPowerSaveBlockers() { | 1862 void RenderViewHostImpl::ClearPowerSaveBlockers() { |
| 1855 STLDeleteValues(&power_save_blockers_); | 1863 STLDeleteValues(&power_save_blockers_); |
| 1856 } | 1864 } |
| 1857 | 1865 |
| 1858 } // namespace content | 1866 } // namespace content |
| OLD | NEW |