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

Side by Side Diff: net/base/network_delegate_impl.h

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.cc ('k') | net/base/network_delegate_impl.cc » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef NET_BASE_NETWORK_DELEGATE_IMPL_H_ 5 #ifndef NET_BASE_NETWORK_DELEGATE_IMPL_H_
6 #define NET_BASE_NETWORK_DELEGATE_IMPL_H_ 6 #define NET_BASE_NETWORK_DELEGATE_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 // Indicates that the URL request has been completed or failed. 131 // Indicates that the URL request has been completed or failed.
132 // |started| indicates whether the request has been started. If false, 132 // |started| indicates whether the request has been started. If false,
133 // some information like the socket address is not available. 133 // some information like the socket address is not available.
134 void OnCompleted(URLRequest* request, bool started) override; 134 void OnCompleted(URLRequest* request, bool started) override;
135 135
136 // Called when an URLRequest is being destroyed. Note that the request is 136 // Called when an URLRequest is being destroyed. Note that the request is
137 // being deleted, so it's not safe to call any methods that may result in 137 // being deleted, so it's not safe to call any methods that may result in
138 // a virtual method call. 138 // a virtual method call.
139 void OnURLRequestDestroyed(URLRequest* request) override; 139 void OnURLRequestDestroyed(URLRequest* request) override;
140 140
141 // Called when the current job for |request| is orphaned. This is a temporary
142 // callback to diagnose https://crbug.com/289715 and may not be used for other
143 // purposes. Note that it may be called after OnURLRequestDestroyed.
144 //
145 // TODO(davidben): Remove this once data has been gathered.
146 void OnURLRequestJobOrphaned(URLRequest* request) override;
147
141 // Corresponds to ProxyResolverJSBindings::OnError. 148 // Corresponds to ProxyResolverJSBindings::OnError.
142 void OnPACScriptError(int line_number, const base::string16& error) override; 149 void OnPACScriptError(int line_number, const base::string16& error) override;
143 150
144 // Called when a request receives an authentication challenge 151 // Called when a request receives an authentication challenge
145 // specified by |auth_info|, and is unable to respond using cached 152 // specified by |auth_info|, and is unable to respond using cached
146 // credentials. |callback| and |credentials| must be non-NULL, and must 153 // credentials. |callback| and |credentials| must be non-NULL, and must
147 // be valid until OnURLRequestDestroyed is called for |request|. 154 // be valid until OnURLRequestDestroyed is called for |request|.
148 // 155 //
149 // The following return values are allowed: 156 // The following return values are allowed:
150 // - AUTH_REQUIRED_RESPONSE_NO_ACTION: |auth_info| is observed, but 157 // - AUTH_REQUIRED_RESPONSE_NO_ACTION: |auth_info| is observed, but
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 // header is stripped from the request. 210 // header is stripped from the request.
204 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( 211 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader(
205 const URLRequest& request, 212 const URLRequest& request,
206 const GURL& target_url, 213 const GURL& target_url,
207 const GURL& referrer_url) const override; 214 const GURL& referrer_url) const override;
208 }; 215 };
209 216
210 } // namespace net 217 } // namespace net
211 218
212 #endif // NET_BASE_NETWORK_DELEGATE_IMPL_H_ 219 #endif // NET_BASE_NETWORK_DELEGATE_IMPL_H_
OLDNEW
« no previous file with comments | « net/base/network_delegate.cc ('k') | net/base/network_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698