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

Unified Diff: net/url_request/url_request.h

Issue 10559036: Added URLRequestContext to constructor for URLRequest. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Converted new unittest. Created 8 years, 6 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: net/url_request/url_request.h
diff --git a/net/url_request/url_request.h b/net/url_request/url_request.h
index 585e24df283c6329eaeaf5bafcdd580a5d335fe0..f2e4ab32254d911d5597f85ecf1f68a477b3353d 100644
--- a/net/url_request/url_request.h
+++ b/net/url_request/url_request.h
@@ -304,7 +304,9 @@ class NET_EXPORT URLRequest : NON_EXPORTED_BASE(public base::NonThreadSafe),
};
// Initialize an URL request.
- URLRequest(const GURL& url, Delegate* delegate);
+ URLRequest(const GURL& url,
+ Delegate* delegate,
+ const URLRequestContext* context);
// If destroyed after Start() has been called but while IO is pending,
// then the request will be effectively canceled and the delegate
@@ -590,7 +592,6 @@ class NET_EXPORT URLRequest : NON_EXPORTED_BASE(public base::NonThreadSafe),
// Used to specify the context (cookie store, cache) for this request.
const URLRequestContext* context() const;
- void set_context(const URLRequestContext* context);
const BoundNetLog& net_log() const { return net_log_; }

Powered by Google App Engine
This is Rietveld 408576698