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

Unified Diff: content/public/common/url_fetcher.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: clang fix Created 8 years, 10 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/public/common/url_fetcher.h
diff --git a/content/public/common/url_fetcher.h b/content/public/common/url_fetcher.h
index 571a34bc85624b09e67fca77634229174a9a999f..e6e7fac84bb0af0642ba0c3944f4f9328e4afd45 100644
--- a/content/public/common/url_fetcher.h
+++ b/content/public/common/url_fetcher.h
@@ -32,6 +32,7 @@ typedef std::vector<std::string> ResponseCookies;
namespace content {
+class ContentURLRequestUserData;
class URLFetcherDelegate;
// To use this class, create an instance with the desired URL and a pointer to
@@ -156,6 +157,11 @@ class CONTENT_EXPORT URLFetcher {
virtual void SetRequestContext(
net::URLRequestContextGetter* request_context_getter) = 0;
+ // Stash the |user_data| object into the request. The request will take
+ // ownership of |user_data|. Must be called before the request is started.
+ virtual void SetContentURLRequestUserData(
+ content::ContentURLRequestUserData* user_data) = 0;
jam 2012/03/01 19:30:42 nit: content:: not needed why do you have two way
jochen (gone - plz use gerrit) 2012/03/01 19:39:11 I'll do that. However, I'll still need to expose
+
// If |retry| is false, 5xx responses will be propagated to the observer,
// if it is true URLFetcher will automatically re-execute the request,
// after backoff_delay() elapses. URLFetcher has it set to true by default.
@@ -192,9 +198,11 @@ class CONTENT_EXPORT URLFetcher {
// settings.
virtual void Start() = 0;
- // Restarts the URLFetcher with a new URLRequestContextGetter.
- virtual void StartWithRequestContextGetter(
- net::URLRequestContextGetter* request_context_getter) = 0;
+ // Restarts the URLFetcher with a new URLRequestContextGetter and
+ // ContentURLRequestUserData.
+ virtual void StartWithRequestContextGetterAndUserData(
jam 2012/03/01 19:30:42 nit: it seems redundant to put the parameter names
jochen (gone - plz use gerrit) 2012/03/01 19:39:11 I think we could just get rid of this function ent
+ net::URLRequestContextGetter* request_context_getter,
+ content::ContentURLRequestUserData* user_data) = 0;
jam 2012/03/01 19:30:42 nit: content:: is not necessary
// Return the URL that we were asked to fetch.
virtual const GURL& GetOriginalURL() const = 0;

Powered by Google App Engine
This is Rietveld 408576698