summaryrefslogtreecommitdiffstats
path: root/net/url_request/url_request.cc
diff options
context:
space:
mode:
authorukai@chromium.org <ukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-13 02:30:38 +0000
committerukai@chromium.org <ukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-13 02:30:38 +0000
commitc6f27df9b6d00653f079a03bf805aa7645ab3b22 (patch)
tree290f394d8d4e9eae89abfece8d0529439cb25b61 /net/url_request/url_request.cc
parent6a37279aca0ed7e894894042de4b226f46af6bf6 (diff)
downloadchromium_src-c6f27df9b6d00653f079a03bf805aa7645ab3b22.zip
chromium_src-c6f27df9b6d00653f079a03bf805aa7645ab3b22.tar.gz
chromium_src-c6f27df9b6d00653f079a03bf805aa7645ab3b22.tar.bz2
Plumb LoadLog into SocketStream
BUG=none TEST=none Review URL: http://codereview.chromium.org/385003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31881 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request/url_request.cc')
-rw-r--r--net/url_request/url_request.cc13
1 files changed, 10 insertions, 3 deletions
diff --git a/net/url_request/url_request.cc b/net/url_request/url_request.cc
index 96fb051..9577a4a 100644
--- a/net/url_request/url_request.cc
+++ b/net/url_request/url_request.cc
@@ -49,7 +49,7 @@ URLRequest::URLRequest(const GURL& url, Delegate* delegate)
redirect_limit_(kMaxRedirects),
final_upload_progress_(0),
priority_(0),
- ALLOW_THIS_IN_INITIALIZER_LIST(url_request_tracker_node_(this)) {
+ ALLOW_THIS_IN_INITIALIZER_LIST(request_tracker_node_(this)) {
SIMPLE_STATS_COUNTER("URLRequestCount");
// Sanity check out environment.
@@ -495,9 +495,9 @@ void URLRequest::set_context(URLRequestContext* context) {
// If the context this request belongs to has changed, update the tracker(s).
if (prev_context != context) {
if (prev_context)
- prev_context->request_tracker()->Remove(this);
+ prev_context->url_request_tracker()->Remove(this);
if (context)
- context->request_tracker()->Add(this);
+ context->url_request_tracker()->Add(this);
}
}
@@ -519,3 +519,10 @@ URLRequest::UserData* URLRequest::GetUserData(const void* key) const {
void URLRequest::SetUserData(const void* key, UserData* data) {
user_data_[key] = linked_ptr<UserData>(data);
}
+
+void URLRequest::GetInfoForTracker(
+ RequestTracker<URLRequest>::RecentRequestInfo* info) const {
+ DCHECK(info);
+ info->original_url = original_url_;
+ info->load_log = load_log_;
+}