OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "net/base/network_delegate.h" | 5 #include "net/base/network_delegate.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 | 8 |
9 namespace net { | 9 namespace net { |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... |
33 DCHECK(CalledOnValidThread()); | 33 DCHECK(CalledOnValidThread()); |
34 OnRequestSent(request_id, socket_address, headers); | 34 OnRequestSent(request_id, socket_address, headers); |
35 } | 35 } |
36 | 36 |
37 void NetworkDelegate::NotifyResponseStarted(URLRequest* request) { | 37 void NetworkDelegate::NotifyResponseStarted(URLRequest* request) { |
38 DCHECK(CalledOnValidThread()); | 38 DCHECK(CalledOnValidThread()); |
39 DCHECK(request); | 39 DCHECK(request); |
40 OnResponseStarted(request); | 40 OnResponseStarted(request); |
41 } | 41 } |
42 | 42 |
| 43 void NetworkDelegate::NotifyRawBytesRead(const URLRequest& request, |
| 44 int bytes_read) { |
| 45 DCHECK(CalledOnValidThread()); |
| 46 OnRawBytesRead(request, bytes_read); |
| 47 } |
| 48 |
43 void NetworkDelegate::NotifyBeforeRedirect(URLRequest* request, | 49 void NetworkDelegate::NotifyBeforeRedirect(URLRequest* request, |
44 const GURL& new_location) { | 50 const GURL& new_location) { |
45 DCHECK(CalledOnValidThread()); | 51 DCHECK(CalledOnValidThread()); |
46 DCHECK(request); | 52 DCHECK(request); |
47 OnBeforeRedirect(request, new_location); | 53 OnBeforeRedirect(request, new_location); |
48 } | 54 } |
49 | 55 |
50 void NetworkDelegate::NotifyCompleted(URLRequest* request) { | 56 void NetworkDelegate::NotifyCompleted(URLRequest* request) { |
51 DCHECK(CalledOnValidThread()); | 57 DCHECK(CalledOnValidThread()); |
52 DCHECK(request); | 58 DCHECK(request); |
(...skipping 11 matching lines...) Expand all Loading... |
64 OnHttpTransactionDestroyed(request_id); | 70 OnHttpTransactionDestroyed(request_id); |
65 } | 71 } |
66 | 72 |
67 void NetworkDelegate::NotifyPACScriptError(int line_number, | 73 void NetworkDelegate::NotifyPACScriptError(int line_number, |
68 const string16& error) { | 74 const string16& error) { |
69 DCHECK(CalledOnValidThread()); | 75 DCHECK(CalledOnValidThread()); |
70 OnPACScriptError(line_number, error); | 76 OnPACScriptError(line_number, error); |
71 } | 77 } |
72 | 78 |
73 } // namespace net | 79 } // namespace net |
OLD | NEW |