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

Unified Diff: content/browser/renderer_host/resource_dispatcher_host.h

Issue 9580002: Add ResourceRequestInfo. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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: content/browser/renderer_host/resource_dispatcher_host.h
===================================================================
--- content/browser/renderer_host/resource_dispatcher_host.h (revision 125418)
+++ content/browser/renderer_host/resource_dispatcher_host.h (working copy)
@@ -32,7 +32,6 @@
#include "webkit/glue/resource_type.h"
class DownloadFileManager;
-class ResourceDispatcherHostRequestInfo;
class ResourceHandler;
class ResourceMessageFilter;
class SaveFileManager;
@@ -44,6 +43,7 @@
namespace content {
class ResourceContext;
class ResourceDispatcherHostDelegate;
+class ResourceRequestInfoImpl;
struct GlobalRequestID;
}
@@ -197,9 +197,9 @@
// Helper functions to get the dispatcher's request info for the request.
// If the dispatcher didn't create the request then NULL is returned.
- static ResourceDispatcherHostRequestInfo* InfoForRequest(
+ static content::ResourceRequestInfoImpl* InfoForRequest(
net::URLRequest* request);
- static const ResourceDispatcherHostRequestInfo* InfoForRequest(
+ static const content::ResourceRequestInfoImpl* InfoForRequest(
const net::URLRequest* request);
// Extracts the render view/process host's identifiers from the given request
@@ -279,6 +279,8 @@
const DownloadSaveInfo& save_info,
const DownloadResourceHandler::OnStartedCallback& started_cb);
+ static void ClearLoginDelegate(net::URLRequest* request);
+
private:
FRIEND_TEST_ALL_PREFIXES(ResourceDispatcherHostTest,
TestBlockedRequestsProcessDies);
@@ -291,18 +293,13 @@
friend class ShutdownTask;
- // Associates the given info with the given request. The info will then be
- // owned by the request.
- void SetRequestInfo(net::URLRequest* request,
- ResourceDispatcherHostRequestInfo* info);
-
// A shutdown helper that runs on the IO thread.
void OnShutdown();
void StartRequest(net::URLRequest* request);
// Returns true if the request is paused.
- bool PauseRequestIfNeeded(ResourceDispatcherHostRequestInfo* info);
+ bool PauseRequestIfNeeded(content::ResourceRequestInfoImpl* info);
// Resumes the given request by calling OnResponseStarted or OnReadCompleted.
void ResumeRequest(const content::GlobalRequestID& request_id);
@@ -385,7 +382,7 @@
void UpdateLoadStates();
// Checks the upload state and sends an update if one is necessary.
- void MaybeUpdateUploadProgress(ResourceDispatcherHostRequestInfo *info,
+ void MaybeUpdateUploadProgress(content::ResourceRequestInfoImpl *info,
net::URLRequest *request);
// Resumes or cancels (if |cancel_requests| is true) any blocked requests.
@@ -413,9 +410,9 @@
const GURL& new_first_party_for_cookies);
void OnReleaseDownloadedFile(int request_id);
- // Creates ResourceDispatcherHostRequestInfo for a download or page save.
+ // Creates ResourceRequestInfoImpl for a download or page save.
// |download| should be true if the request is a file download.
- ResourceDispatcherHostRequestInfo* CreateRequestInfo(
+ content::ResourceRequestInfoImpl* CreateRequestInfo(
ResourceHandler* handler,
int child_id,
int route_id,
« no previous file with comments | « content/browser/renderer_host/dummy_resource_handler.cc ('k') | content/browser/renderer_host/resource_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698