diff options
author | cbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-31 12:13:14 +0000 |
---|---|---|
committer | cbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-31 12:13:14 +0000 |
commit | 446b1856d31c70cac44552dd1536a8e3a90ea850 (patch) | |
tree | d236d42d0503adaa95270befd830606c0d29b4a2 /chrome/browser/task_manager.h | |
parent | 510acee3c06adff88557f4699dd47e4ab9937b25 (diff) | |
download | chromium_src-446b1856d31c70cac44552dd1536a8e3a90ea850.zip chromium_src-446b1856d31c70cac44552dd1536a8e3a90ea850.tar.gz chromium_src-446b1856d31c70cac44552dd1536a8e3a90ea850.tar.bz2 |
Add the actual data being read to the OnBytesRead callback, take two.
This change was originally committed as
http://src.chromium.org/viewvc/chrome?view=rev&revision=53178
then rolled back as
http://src.chromium.org/viewvc/chrome?view=rev&revision=53416
due to a breakage in FLAKY_UnknownSize download test.
FLAKY_UnknownSize depended on code with a bug that was exposed by this change. That bug has since been fixed and committed as
http://src.chromium.org/viewvc/chrome?view=rev&revision=53876
So this change is ready for another round of review. It has not changed at all since being committed.
Contributed by: bmcquade@google.com
BUG=48192
TEST=Added new unit tests, ran net_unittests.
Review URL: http://codereview.chromium.org/3010037
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54448 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/task_manager.h')
-rw-r--r-- | chrome/browser/task_manager.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/task_manager.h b/chrome/browser/task_manager.h index 2865a46..6ffd09b 100644 --- a/chrome/browser/task_manager.h +++ b/chrome/browser/task_manager.h @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 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. @@ -241,7 +241,7 @@ class TaskManagerModel : public URLRequestJobTracker::JobObserver, void OnJobRemoved(URLRequestJob* job); void OnJobDone(URLRequestJob* job, const URLRequestStatus& status); void OnJobRedirect(URLRequestJob* job, const GURL& location, int status_code); - void OnBytesRead(URLRequestJob* job, int byte_count); + void OnBytesRead(URLRequestJob* job, const char* buf, int byte_count); void AddResourceProvider(TaskManager::ResourceProvider* provider); void RemoveResourceProvider(TaskManager::ResourceProvider* provider); |