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

Unified Diff: content/browser/loader/resource_dispatcher_host_impl.h

Issue 2235123002: Stop ShouldServiceRequest from running callback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « no previous file | content/browser/loader/resource_dispatcher_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/loader/resource_dispatcher_host_impl.h
diff --git a/content/browser/loader/resource_dispatcher_host_impl.h b/content/browser/loader/resource_dispatcher_host_impl.h
index 3e6c504afb634589b9871f15cb33a944968858d9..559fe0aa669a062326193f6660a0e27b49a23811 100644
--- a/content/browser/loader/resource_dispatcher_host_impl.h
+++ b/content/browser/loader/resource_dispatcher_host_impl.h
@@ -575,27 +575,16 @@ class CONTENT_EXPORT ResourceDispatcherHostImpl
CertStore* GetCertStore();
- // This enum holds values which indicate how we want to proceed with a
- // request that is about to be started.
- enum BeginRequestStatus {
- CONTINUE = 0, // Continue with the request.
- ABORT = 1, // Abort.
- PENDING = 2, // Wait for the decision to come back.
- LAST_SERVICE_REQUEST_STATUS = PENDING,
- };
-
// Consults the RendererSecurity policy to determine whether the
// ResourceDispatcherHostImpl should service this request. A request might
// be disallowed if the renderer is not authorized to retrieve the request
// URL or if the renderer is attempting to upload an unauthorized file.
- BeginRequestStatus ShouldServiceRequest(
- int process_type,
- int child_id,
- const ResourceRequest& request_data,
- const net::HttpRequestHeaders& headers,
- ResourceMessageFilter* filter,
- ResourceContext* resource_context,
- OnHeaderProcessedCallback callback);
+ bool ShouldServiceRequest(int process_type,
+ int child_id,
+ const ResourceRequest& request_data,
+ const net::HttpRequestHeaders& headers,
+ ResourceMessageFilter* filter,
+ ResourceContext* resource_context);
LoaderMap pending_loaders_;
« no previous file with comments | « no previous file | content/browser/loader/resource_dispatcher_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698