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

Unified Diff: content/public/browser/resource_request_info.h

Issue 9572001: Do cookie checks in NetworkDelegate instead of the URLRequest::Delegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch for landing 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
« no previous file with comments | « content/content_common.gypi ('k') | content/public/common/url_fetcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/resource_request_info.h
diff --git a/content/public/browser/resource_request_info.h b/content/public/browser/resource_request_info.h
index 1339d423dcca10d13cec59b3d559087996d24009..33c68994439c8699b342f46f6048a83926172f88 100644
--- a/content/public/browser/resource_request_info.h
+++ b/content/public/browser/resource_request_info.h
@@ -33,6 +33,15 @@ class ResourceRequestInfo {
net::URLRequest* request,
ResourceContext* context);
+ // Returns the associated RenderView for a given process. Returns false, if
+ // there is no associated RenderView. This method does not rely on the
+ // request being allocated by the ResourceDispatcherHost, but works for all
+ // URLRequests that are associated with a RenderView.
+ CONTENT_EXPORT static bool GetRenderViewForRequest(
+ const net::URLRequest* request,
+ int* render_process_id,
+ int* render_view_id);
+
// Returns the associated ResourceContext.
virtual ResourceContext* GetContext() const = 0;
« no previous file with comments | « content/content_common.gypi ('k') | content/public/common/url_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698