| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |