From c6f27df9b6d00653f079a03bf805aa7645ab3b22 Mon Sep 17 00:00:00 2001 From: "ukai@chromium.org" Date: Fri, 13 Nov 2009 02:30:38 +0000 Subject: 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 --- net/url_request/url_request.cc | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'net/url_request/url_request.cc') 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(data); } + +void URLRequest::GetInfoForTracker( + RequestTracker::RecentRequestInfo* info) const { + DCHECK(info); + info->original_url = original_url_; + info->load_log = load_log_; +} -- cgit v1.1