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

Side by Side Diff: net/base/network_delegate.cc

Issue 1465503002: Revert of CHECK that URLRequestJobs are not orphaned while blocked by extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make git do the revert Created 5 years, 1 month 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
« no previous file with comments | « net/base/network_delegate.h ('k') | net/base/network_delegate_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 FROM_HERE_WITH_EXPLICIT_FUNCTION("475753 NetworkDelegate::OnCompleted")); 118 FROM_HERE_WITH_EXPLICIT_FUNCTION("475753 NetworkDelegate::OnCompleted"));
119 OnCompleted(request, started); 119 OnCompleted(request, started);
120 } 120 }
121 121
122 void NetworkDelegate::NotifyURLRequestDestroyed(URLRequest* request) { 122 void NetworkDelegate::NotifyURLRequestDestroyed(URLRequest* request) {
123 DCHECK(CalledOnValidThread()); 123 DCHECK(CalledOnValidThread());
124 DCHECK(request); 124 DCHECK(request);
125 OnURLRequestDestroyed(request); 125 OnURLRequestDestroyed(request);
126 } 126 }
127 127
128 void NetworkDelegate::NotifyURLRequestJobOrphaned(URLRequest* request) {
129 DCHECK(CalledOnValidThread());
130 DCHECK(request);
131 OnURLRequestJobOrphaned(request);
132 }
133
134 void NetworkDelegate::NotifyPACScriptError(int line_number, 128 void NetworkDelegate::NotifyPACScriptError(int line_number,
135 const base::string16& error) { 129 const base::string16& error) {
136 DCHECK(CalledOnValidThread()); 130 DCHECK(CalledOnValidThread());
137 OnPACScriptError(line_number, error); 131 OnPACScriptError(line_number, error);
138 } 132 }
139 133
140 NetworkDelegate::AuthRequiredResponse NetworkDelegate::NotifyAuthRequired( 134 NetworkDelegate::AuthRequiredResponse NetworkDelegate::NotifyAuthRequired(
141 URLRequest* request, 135 URLRequest* request,
142 const AuthChallengeInfo& auth_info, 136 const AuthChallengeInfo& auth_info,
143 const AuthCallback& callback, 137 const AuthCallback& callback,
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 bool NetworkDelegate::CancelURLRequestWithPolicyViolatingReferrerHeader( 175 bool NetworkDelegate::CancelURLRequestWithPolicyViolatingReferrerHeader(
182 const URLRequest& request, 176 const URLRequest& request,
183 const GURL& target_url, 177 const GURL& target_url,
184 const GURL& referrer_url) const { 178 const GURL& referrer_url) const {
185 DCHECK(CalledOnValidThread()); 179 DCHECK(CalledOnValidThread());
186 return OnCancelURLRequestWithPolicyViolatingReferrerHeader( 180 return OnCancelURLRequestWithPolicyViolatingReferrerHeader(
187 request, target_url, referrer_url); 181 request, target_url, referrer_url);
188 } 182 }
189 183
190 } // namespace net 184 } // namespace net
OLDNEW
« no previous file with comments | « net/base/network_delegate.h ('k') | net/base/network_delegate_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698