summaryrefslogtreecommitdiffstats
path: root/net/url_request
diff options
context:
space:
mode:
authorwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-25 19:18:03 +0000
committerwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-25 19:18:03 +0000
commit137ad0c8acd634e11925bce6a605e51a989ac0ff (patch)
tree608d5c5c7a409e77416a5d2a0f14ee83aca194d9 /net/url_request
parentb0ba335675ec7a44de94f182720f16c7ee0c2a7f (diff)
downloadchromium_src-137ad0c8acd634e11925bce6a605e51a989ac0ff.zip
chromium_src-137ad0c8acd634e11925bce6a605e51a989ac0ff.tar.gz
chromium_src-137ad0c8acd634e11925bce6a605e51a989ac0ff.tar.bz2
Reverting 12470.
caused purify errors Review URL: http://codereview.chromium.org/45055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12479 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request')
-rw-r--r--net/url_request/url_request.cc3
-rw-r--r--net/url_request/url_request.h23
-rw-r--r--net/url_request/url_request_http_job.cc1
3 files changed, 7 insertions, 20 deletions
diff --git a/net/url_request/url_request.cc b/net/url_request/url_request.cc
index 335f974..3de8439 100644
--- a/net/url_request/url_request.cc
+++ b/net/url_request/url_request.cc
@@ -47,8 +47,7 @@ URLRequest::URLRequest(const GURL& url, Delegate* delegate)
user_data_(NULL),
enable_profiling_(false),
redirect_limit_(kMaxRedirects),
- final_upload_progress_(0),
- priority_(0) {
+ final_upload_progress_(0) {
URLREQUEST_COUNT_CTOR();
SIMPLE_STATS_COUNTER("URLRequestCount");
origin_pid_ = base::GetCurrentProcId();
diff --git a/net/url_request/url_request.h b/net/url_request/url_request.h
index d45e510..a16080f 100644
--- a/net/url_request/url_request.h
+++ b/net/url_request/url_request.h
@@ -8,7 +8,6 @@
#include <string>
#include <vector>
-#include "base/logging.h"
#include "base/ref_counted.h"
#include "googleurl/src/gurl.h"
#include "net/base/load_states.h"
@@ -16,14 +15,16 @@
#include "net/url_request/url_request_status.h"
namespace base {
-class Time;
-} // namespace base
+ class Time;
+}
namespace net {
+
class IOBuffer;
class UploadData;
class X509Certificate;
-} // namespace net
+
+}
class URLRequestContext;
class URLRequestJob;
@@ -430,20 +431,12 @@ class URLRequest {
// Returns the expected content size if available
int64 GetExpectedContentSize() const;
- // Returns the priority level for this request. A larger value indicates
- // higher priority. Negative values are not used.
- int priority() const { return priority_; }
- void set_priority(int priority) {
- DCHECK_GE(priority, 0);
- priority_ = priority;
- }
-
protected:
// Allow the URLRequestJob class to control the is_pending() flag.
void set_is_pending(bool value) { is_pending_ = value; }
// Allow the URLRequestJob class to set our status too
- void set_status(const URLRequestStatus& value) { status_ = value; }
+ void set_status(const URLRequestStatus &value) { status_ = value; }
// Allow the URLRequestJob to redirect this request. Returns net::OK if
// successful, otherwise an error code is returned.
@@ -512,10 +505,6 @@ class URLRequest {
// first transaction in a request involving redirects.
uint64 final_upload_progress_;
- // The priority level for this request. Objects like ClientSocketPool use
- // this to determine which URLRequest to allocate sockets to first.
- int priority_;
-
DISALLOW_COPY_AND_ASSIGN(URLRequest);
};
diff --git a/net/url_request/url_request_http_job.cc b/net/url_request/url_request_http_job.cc
index 4180bef..cf380de 100644
--- a/net/url_request/url_request_http_job.cc
+++ b/net/url_request/url_request_http_job.cc
@@ -111,7 +111,6 @@ void URLRequestHttpJob::Start() {
request_info_.referrer = referrer;
request_info_.method = request_->method();
request_info_.load_flags = request_->load_flags();
- request_info_.priority = request_->priority();
if (request_->context()) {
request_info_.user_agent =