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

Unified Diff: net/url_request/url_request_http_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: Address comments 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_http_job.h
diff --git a/net/url_request/url_request_http_job.h b/net/url_request/url_request_http_job.h
index 8020625e14c67b4d3ebae22b28ae63a5ab40d04b..2f5229b2eefc3da0146299e7e63b66e13f7f75ae 100644
--- a/net/url_request/url_request_http_job.h
+++ b/net/url_request/url_request_http_job.h
@@ -14,6 +14,7 @@
#include "base/time.h"
#include "net/base/auth.h"
#include "net/base/completion_callback.h"
+#include "net/base/net_export.h"
#include "net/cookies/cookie_store.h"
#include "net/http/http_request_info.h"
#include "net/url_request/url_request_job.h"
@@ -30,7 +31,7 @@ class URLRequestContext;
// A URLRequestJob subclass that is built on top of HttpTransaction. It
// provides an implementation for both HTTP and HTTPS.
-class URLRequestHttpJob : public URLRequestJob {
+class NET_EXPORT_PRIVATE URLRequestHttpJob : public URLRequestJob {
public:
static URLRequestJob* Factory(URLRequest* request,
NetworkDelegate* network_delegate,
@@ -98,6 +99,7 @@ class URLRequestHttpJob : public URLRequestJob {
virtual void DoneReading() OVERRIDE;
virtual HostPortPair GetSocketAddress() const OVERRIDE;
virtual void NotifyURLRequestDestroyed() OVERRIDE;
+ virtual void SetPriority(RequestPriority priority) OVERRIDE;
HttpRequestInfo request_info_;
const HttpResponseInfo* response_info_;
@@ -141,6 +143,8 @@ class URLRequestHttpJob : public URLRequestJob {
bool is_cached_content_;
private:
+ friend class URLRequestHttpJobTest;
+
enum CompletionCause {
ABORTED,
FINISHED

Powered by Google App Engine
This is Rietveld 408576698