diff options
author | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-22 22:21:07 +0000 |
---|---|---|
committer | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-22 22:21:07 +0000 |
commit | 6cf4908b6a13150baf8b462122be69c3d8eb20fc (patch) | |
tree | 9c2a318129ab7c492f13d66926b6d5d36547de90 /net/url_request | |
parent | f53121d2c69801353feb2531446a1b1b93e576d4 (diff) | |
download | chromium_src-6cf4908b6a13150baf8b462122be69c3d8eb20fc.zip chromium_src-6cf4908b6a13150baf8b462122be69c3d8eb20fc.tar.gz chromium_src-6cf4908b6a13150baf8b462122be69c3d8eb20fc.tar.bz2 |
Remove AddRef()/Release() from ViewHttpCacheJob. Use a Core class.
This is part of the process to remove refcounting from URLRequestJob.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6717012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79057 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request')
-rw-r--r-- | net/url_request/url_request.cc | 4 | ||||
-rw-r--r-- | net/url_request/url_request.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/net/url_request/url_request.cc b/net/url_request/url_request.cc index 7b792a5..099b57b 100644 --- a/net/url_request/url_request.cc +++ b/net/url_request/url_request.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -629,7 +629,7 @@ int URLRequest::Redirect(const GURL& location, int http_status_code) { return net::OK; } -URLRequestContext* URLRequest::context() { +URLRequestContext* URLRequest::context() const { return context_.get(); } diff --git a/net/url_request/url_request.h b/net/url_request/url_request.h index 9bccfb2..0a65f69 100644 --- a/net/url_request/url_request.h +++ b/net/url_request/url_request.h @@ -537,7 +537,7 @@ class URLRequest : public base::NonThreadSafe { void ContinueDespiteLastError(); // Used to specify the context (cookie store, cache) for this request. - URLRequestContext* context(); + URLRequestContext* context() const; void set_context(URLRequestContext* context); const net::BoundNetLog& net_log() const { return net_log_; } |