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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 DCHECK(request); | 62 DCHECK(request); |
63 OnURLRequestDestroyed(request); | 63 OnURLRequestDestroyed(request); |
64 } | 64 } |
65 | 65 |
66 void NetworkDelegate::NotifyPACScriptError(int line_number, | 66 void NetworkDelegate::NotifyPACScriptError(int line_number, |
67 const string16& error) { | 67 const string16& error) { |
68 DCHECK(CalledOnValidThread()); | 68 DCHECK(CalledOnValidThread()); |
69 OnPACScriptError(line_number, error); | 69 OnPACScriptError(line_number, error); |
70 } | 70 } |
71 | 71 |
72 void NetworkDelegate::NotifyAuthRequired(URLRequest* request, | 72 int NetworkDelegate::NotifyAuthRequired(URLRequest* request, |
73 const AuthChallengeInfo& auth_info) { | 73 const AuthChallengeInfo& auth_info, |
| 74 CompletionCallback* callback, |
| 75 AuthCredentials* credentials) { |
74 DCHECK(CalledOnValidThread()); | 76 DCHECK(CalledOnValidThread()); |
75 OnAuthRequired(request, auth_info); | 77 return OnAuthRequired(request, auth_info, callback, credentials); |
76 } | 78 } |
77 | 79 |
78 } // namespace net | 80 } // namespace net |
OLD | NEW |