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

Unified Diff: chrome/browser/renderer_host/resource_dispatcher_host.cc

Issue 113488: Rename RendererSecurityPolicy and move it to browser\. No code change. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/renderer_host/resource_dispatcher_host.cc
===================================================================
--- chrome/browser/renderer_host/resource_dispatcher_host.cc (revision 16195)
+++ chrome/browser/renderer_host/resource_dispatcher_host.cc (working copy)
@@ -13,6 +13,7 @@
#include "base/stl_util-inl.h"
#include "base/time.h"
#include "chrome/browser/cert_store.h"
+#include "chrome/browser/child_process_security_policy.h"
#include "chrome/browser/cross_site_request_manager.h"
#include "chrome/browser/download/download_file.h"
#include "chrome/browser/download/download_manager.h"
@@ -27,7 +28,6 @@
#include "chrome/browser/renderer_host/download_resource_handler.h"
#include "chrome/browser/renderer_host/media_resource_handler.h"
#include "chrome/browser/renderer_host/render_view_host.h"
-#include "chrome/browser/renderer_host/renderer_security_policy.h"
#include "chrome/browser/renderer_host/resource_request_details.h"
#include "chrome/browser/renderer_host/safe_browsing_resource_handler.h"
#include "chrome/browser/renderer_host/save_file_resource_handler.h"
@@ -109,7 +109,7 @@
if (process_type != ChildProcessInfo::RENDER_PROCESS)
return true;
- RendererSecurityPolicy* policy = RendererSecurityPolicy::GetInstance();
+ ChildProcessSecurityPolicy* policy = ChildProcessSecurityPolicy::GetInstance();
// Check if the renderer is permitted to request the requested URL.
if (!policy->CanRequestURL(process_id, request_data.url)) {
@@ -484,7 +484,7 @@
return;
// Check if the renderer is permitted to request the requested URL.
- if (!RendererSecurityPolicy::GetInstance()->
+ if (!ChildProcessSecurityPolicy::GetInstance()->
CanRequestURL(process_id, url)) {
LOG(INFO) << "Denied unauthorized download request for " <<
url.possibly_invalid_spec();
@@ -821,7 +821,7 @@
DCHECK(request->status().is_success());
if (info->process_type == ChildProcessInfo::RENDER_PROCESS &&
- !RendererSecurityPolicy::GetInstance()->
+ !ChildProcessSecurityPolicy::GetInstance()->
CanRequestURL(info->process_id, new_url)) {
LOG(INFO) << "Denied unauthorized request for " <<
new_url.possibly_invalid_spec();

Powered by Google App Engine
This is Rietveld 408576698