Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(387)

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 10310124: Implement a ResourceThrottle for URL overriding in Chrome on Android. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fix build (Referrer is a struct, not a class) Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 1699 matching lines...) Expand 10 before | Expand all | Expand 10 after
1835 // can cause navigations to be ignored in OnMsgNavigate. 1843 // can cause navigations to be ignored in OnMsgNavigate.
1836 is_waiting_for_beforeunload_ack_ = false; 1844 is_waiting_for_beforeunload_ack_ = false;
1837 is_waiting_for_unload_ack_ = false; 1845 is_waiting_for_unload_ack_ = false;
1838 } 1846 }
1839 1847
1840 void RenderViewHostImpl::ClearPowerSaveBlockers() { 1848 void RenderViewHostImpl::ClearPowerSaveBlockers() {
1841 STLDeleteValues(&power_save_blockers_); 1849 STLDeleteValues(&power_save_blockers_);
1842 } 1850 }
1843 1851
1844 } // namespace content 1852 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/download/download_resource_handler.cc ('k') | content/browser/renderer_host/resource_request_info_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698