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

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

Issue 1337113004: CHECK that URLRequestJobs are not orphaned while blocked by extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mmenke comments Created 5 years, 3 months 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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