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

Unified Diff: net/url_request/url_request_ftp_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: Rebase 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_ftp_job.h
diff --git a/net/url_request/url_request_ftp_job.h b/net/url_request/url_request_ftp_job.h
index 3b053c1e190ab61823a43babecdd196151b4807d..92b17b71e73c9427b9b748a4d546b7a12037dad8 100644
--- a/net/url_request/url_request_ftp_job.h
+++ b/net/url_request/url_request_ftp_job.h
@@ -9,6 +9,7 @@
#include "base/memory/weak_ptr.h"
#include "net/base/auth.h"
+#include "net/base/net_export.h"
#include "net/ftp/ftp_request_info.h"
#include "net/ftp/ftp_transaction.h"
#include "net/http/http_request_info.h"
@@ -25,7 +26,7 @@ class FtpAuthCache;
// A URLRequestJob subclass that is built on top of FtpTransaction. It
// provides an implementation for FTP.
-class URLRequestFtpJob : public URLRequestJob {
+class NET_EXPORT_PRIVATE URLRequestFtpJob : public URLRequestJob {
public:
URLRequestFtpJob(URLRequest* request,
NetworkDelegate* network_delegate,
@@ -43,9 +44,17 @@ class URLRequestFtpJob : public URLRequestJob {
virtual void GetResponseInfo(HttpResponseInfo* info) OVERRIDE;
virtual HostPortPair GetSocketAddress() const OVERRIDE;
mmenke 2013/03/20 17:12:59 While you're here, seems kinda weird that there ar
akalin 2013/03/21 01:30:33 Done.
- private:
+ protected:
virtual ~URLRequestFtpJob();
+ // Overridden from URLRequestJob:
+ virtual void SetPriority(RequestPriority priority) OVERRIDE;
+ virtual void Start() OVERRIDE;
+ virtual void Kill() OVERRIDE;
+
+ RequestPriority priority_;
mmenke 2013/03/20 17:12:59 optional: Think it's a little better to give this
akalin 2013/03/21 01:30:33 Well, subclasses can just call SetPriority(), but
+
+ private:
void OnResolveProxyComplete(int result);
void StartFtpTransaction();
@@ -60,8 +69,6 @@ class URLRequestFtpJob : public URLRequestJob {
void LogFtpServerType(char server_type);
// Overridden from URLRequestJob:
- virtual void Start() OVERRIDE;
- virtual void Kill() OVERRIDE;
virtual LoadState GetLoadState() const OVERRIDE;
virtual bool NeedsAuth() OVERRIDE;
virtual void GetAuthChallengeInfo(

Powered by Google App Engine
This is Rietveld 408576698