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

Unified Diff: net/url_request/url_request_test_job.h

Issue 12701011: [Net] Propagate priority changes from URLRequest to HttpTransaction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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: net/url_request/url_request_test_job.h
diff --git a/net/url_request/url_request_test_job.h b/net/url_request/url_request_test_job.h
index 0c46d1beb477a977a6434ba5ee014c8705f9d535..52ef03698bdf35cc264566cb777111e0e50954bb 100644
--- a/net/url_request/url_request_test_job.h
+++ b/net/url_request/url_request_test_job.h
@@ -104,6 +104,11 @@ class NET_EXPORT_PRIVATE URLRequestTestJob : public URLRequestJob {
virtual int GetResponseCode() const OVERRIDE;
virtual bool IsRedirectResponse(GURL* location,
int* http_status_code) OVERRIDE;
+ virtual void SetPriority(RequestPriority priority) OVERRIDE;
+
+ RequestPriority priority() const {
+ return priority_;
+ }
protected:
// Override to specify whether the next read done from this job will
@@ -132,6 +137,8 @@ class NET_EXPORT_PRIVATE URLRequestTestJob : public URLRequestJob {
Stage stage_;
+ RequestPriority priority_;
+
// The headers the job should return, will be set in Start() if not provided
// in the explicit ctor.
scoped_refptr<HttpResponseHeaders> response_headers_;

Powered by Google App Engine
This is Rietveld 408576698