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

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: Add more tests 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..6f717f7414b528353ea93403f799d25e3b113ea2 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,
@@ -41,6 +42,8 @@ class URLRequestHttpJob : public URLRequestJob {
NetworkDelegate* network_delegate,
const HttpUserAgentSettings* http_user_agent_settings);
+ virtual ~URLRequestHttpJob();
+
// Shadows URLRequestJob's version of this method so we can grab cookies.
void NotifyHeadersComplete();
@@ -98,6 +101,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_;
@@ -151,8 +155,6 @@ class URLRequestHttpJob : public URLRequestJob {
class HttpFilterContext;
class HttpTransactionDelegateImpl;
- virtual ~URLRequestHttpJob();
-
void RecordTimer();
void ResetTimer();

Powered by Google App Engine
This is Rietveld 408576698