summaryrefslogtreecommitdiffstats
path: root/net/url_request
diff options
context:
space:
mode:
authoravi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-20 23:11:34 +0000
committeravi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-20 23:11:34 +0000
commit3589e5546b68529918cb47fc74e3544f630cb889 (patch)
treea8e55dfe05fe38b70fc6496ab9d0cc9a82696fb0 /net/url_request
parentd18841236d72d85f8a3f0f3d6a1a06db334ae686 (diff)
downloadchromium_src-3589e5546b68529918cb47fc74e3544f630cb889.zip
chromium_src-3589e5546b68529918cb47fc74e3544f630cb889.tar.gz
chromium_src-3589e5546b68529918cb47fc74e3544f630cb889.tar.bz2
More of net compiling on the Mac.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1125 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request')
-rw-r--r--net/url_request/url_request.h2
-rw-r--r--net/url_request/url_request_http_job.cc4
2 files changed, 4 insertions, 2 deletions
diff --git a/net/url_request/url_request.h b/net/url_request/url_request.h
index 4e03b2f..26a6258 100644
--- a/net/url_request/url_request.h
+++ b/net/url_request/url_request.h
@@ -114,6 +114,8 @@ class URLRequest {
//
class Delegate {
public:
+ virtual ~Delegate() {}
+
// Called upon a server-initiated redirect. The delegate may call the
// request's Cancel method to prevent the redirect from being followed.
// Since there may be multiple chained redirects, there may also be more
diff --git a/net/url_request/url_request_http_job.cc b/net/url_request/url_request_http_job.cc
index 9e89faa..dbcfa05 100644
--- a/net/url_request/url_request_http_job.cc
+++ b/net/url_request/url_request_http_job.cc
@@ -63,14 +63,14 @@ URLRequestJob* URLRequestHttpJob::Factory(URLRequest* request,
URLRequestHttpJob::URLRequestHttpJob(URLRequest* request)
: URLRequestJob(request),
- context_(request->context()),
transaction_(NULL),
response_info_(NULL),
proxy_auth_state_(net::AUTH_STATE_DONT_NEED_AUTH),
server_auth_state_(net::AUTH_STATE_DONT_NEED_AUTH),
start_callback_(this, &URLRequestHttpJob::OnStartCompleted),
read_callback_(this, &URLRequestHttpJob::OnReadCompleted),
- read_in_progress_(false) {
+ read_in_progress_(false),
+ context_(request->context()) {
}
URLRequestHttpJob::~URLRequestHttpJob() {