OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "base/profiler/scoped_tracker.h" | 8 #include "base/profiler/scoped_tracker.h" |
9 #include "net/base/load_flags.h" | 9 #include "net/base/load_flags.h" |
10 #include "net/base/net_errors.h" | 10 #include "net/base/net_errors.h" |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 FROM_HERE_WITH_EXPLICIT_FUNCTION("475753 NetworkDelegate::OnCompleted")); | 111 FROM_HERE_WITH_EXPLICIT_FUNCTION("475753 NetworkDelegate::OnCompleted")); |
112 OnCompleted(request, started); | 112 OnCompleted(request, started); |
113 } | 113 } |
114 | 114 |
115 void NetworkDelegate::NotifyURLRequestDestroyed(URLRequest* request) { | 115 void NetworkDelegate::NotifyURLRequestDestroyed(URLRequest* request) { |
116 DCHECK(CalledOnValidThread()); | 116 DCHECK(CalledOnValidThread()); |
117 DCHECK(request); | 117 DCHECK(request); |
118 OnURLRequestDestroyed(request); | 118 OnURLRequestDestroyed(request); |
119 } | 119 } |
120 | 120 |
| 121 void NetworkDelegate::NotifyURLRequestJobOrphaned(URLRequest* request) { |
| 122 DCHECK(CalledOnValidThread()); |
| 123 DCHECK(request); |
| 124 OnURLRequestJobOrphaned(request); |
| 125 } |
| 126 |
121 void NetworkDelegate::NotifyPACScriptError(int line_number, | 127 void NetworkDelegate::NotifyPACScriptError(int line_number, |
122 const base::string16& error) { | 128 const base::string16& error) { |
123 DCHECK(CalledOnValidThread()); | 129 DCHECK(CalledOnValidThread()); |
124 OnPACScriptError(line_number, error); | 130 OnPACScriptError(line_number, error); |
125 } | 131 } |
126 | 132 |
127 NetworkDelegate::AuthRequiredResponse NetworkDelegate::NotifyAuthRequired( | 133 NetworkDelegate::AuthRequiredResponse NetworkDelegate::NotifyAuthRequired( |
128 URLRequest* request, | 134 URLRequest* request, |
129 const AuthChallengeInfo& auth_info, | 135 const AuthChallengeInfo& auth_info, |
130 const AuthCallback& callback, | 136 const AuthCallback& callback, |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 bool NetworkDelegate::CancelURLRequestWithPolicyViolatingReferrerHeader( | 174 bool NetworkDelegate::CancelURLRequestWithPolicyViolatingReferrerHeader( |
169 const URLRequest& request, | 175 const URLRequest& request, |
170 const GURL& target_url, | 176 const GURL& target_url, |
171 const GURL& referrer_url) const { | 177 const GURL& referrer_url) const { |
172 DCHECK(CalledOnValidThread()); | 178 DCHECK(CalledOnValidThread()); |
173 return OnCancelURLRequestWithPolicyViolatingReferrerHeader( | 179 return OnCancelURLRequestWithPolicyViolatingReferrerHeader( |
174 request, target_url, referrer_url); | 180 request, target_url, referrer_url); |
175 } | 181 } |
176 | 182 |
177 } // namespace net | 183 } // namespace net |
OLD | NEW |