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