Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1055)

Side by Side Diff: net/url_request/url_request_job_tracker.cc

Issue 3010037: Add the actual data being read to the OnBytesRead callback, take two.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <algorithm> 5 #include <algorithm>
6 6
7 #include "net/url_request/url_request_job_tracker.h" 7 #include "net/url_request/url_request_job_tracker.h"
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "net/url_request/url_request_job.h" 10 #include "net/url_request/url_request_job.h"
11 11
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 } 44 }
45 45
46 void URLRequestJobTracker::OnJobRedirect(URLRequestJob* job, 46 void URLRequestJobTracker::OnJobRedirect(URLRequestJob* job,
47 const GURL& location, 47 const GURL& location,
48 int status_code) { 48 int status_code) {
49 FOR_EACH_OBSERVER(JobObserver, observers_, 49 FOR_EACH_OBSERVER(JobObserver, observers_,
50 OnJobRedirect(job, location, status_code)); 50 OnJobRedirect(job, location, status_code));
51 } 51 }
52 52
53 void URLRequestJobTracker::OnBytesRead(URLRequestJob* job, 53 void URLRequestJobTracker::OnBytesRead(URLRequestJob* job,
54 const char* buf,
54 int byte_count) { 55 int byte_count) {
55 FOR_EACH_OBSERVER(JobObserver, observers_, 56 FOR_EACH_OBSERVER(JobObserver, observers_,
56 OnBytesRead(job, byte_count)); 57 OnBytesRead(job, buf, byte_count));
57 } 58 }
OLDNEW
« no previous file with comments | « net/url_request/url_request_job_tracker.h ('k') | net/url_request/url_request_job_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698