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

Side by Side Diff: chrome/browser/net/chrome_extensions_network_delegate.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 | « no previous file | chrome/browser/net/chrome_extensions_network_delegate.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 CHROME_BROWSER_NET_CHROME_EXTENSIONS_NETWORK_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_NET_CHROME_EXTENSIONS_NETWORK_DELEGATE_H_
6 #define CHROME_BROWSER_NET_CHROME_EXTENSIONS_NETWORK_DELEGATE_H_ 6 #define CHROME_BROWSER_NET_CHROME_EXTENSIONS_NETWORK_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 net::URLRequest* request, 56 net::URLRequest* request,
57 const net::CompletionCallback& callback, 57 const net::CompletionCallback& callback,
58 const net::HttpResponseHeaders* original_response_headers, 58 const net::HttpResponseHeaders* original_response_headers,
59 scoped_refptr<net::HttpResponseHeaders>* override_response_headers, 59 scoped_refptr<net::HttpResponseHeaders>* override_response_headers,
60 GURL* allowed_unsafe_redirect_url) override; 60 GURL* allowed_unsafe_redirect_url) override;
61 void OnBeforeRedirect(net::URLRequest* request, 61 void OnBeforeRedirect(net::URLRequest* request,
62 const GURL& new_location) override; 62 const GURL& new_location) override;
63 void OnResponseStarted(net::URLRequest* request) override; 63 void OnResponseStarted(net::URLRequest* request) override;
64 void OnCompleted(net::URLRequest* request, bool started) override; 64 void OnCompleted(net::URLRequest* request, bool started) override;
65 void OnURLRequestDestroyed(net::URLRequest* request) override; 65 void OnURLRequestDestroyed(net::URLRequest* request) override;
66 void OnURLRequestJobOrphaned(net::URLRequest* request) override;
66 void OnPACScriptError(int line_number, const base::string16& error) override; 67 void OnPACScriptError(int line_number, const base::string16& error) override;
67 net::NetworkDelegate::AuthRequiredResponse OnAuthRequired( 68 net::NetworkDelegate::AuthRequiredResponse OnAuthRequired(
68 net::URLRequest* request, 69 net::URLRequest* request,
69 const net::AuthChallengeInfo& auth_info, 70 const net::AuthChallengeInfo& auth_info,
70 const AuthCallback& callback, 71 const AuthCallback& callback,
71 net::AuthCredentials* credentials) override; 72 net::AuthCredentials* credentials) override;
72 73
73 protected: 74 protected:
74 ChromeExtensionsNetworkDelegate(); 75 ChromeExtensionsNetworkDelegate();
75 76
76 void* profile_; 77 void* profile_;
77 78
78 #if defined(ENABLE_EXTENSIONS) 79 #if defined(ENABLE_EXTENSIONS)
79 scoped_refptr<extensions::InfoMap> extension_info_map_; 80 scoped_refptr<extensions::InfoMap> extension_info_map_;
80 #endif 81 #endif
81 82
82 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsNetworkDelegate); 83 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsNetworkDelegate);
83 }; 84 };
84 85
85 #endif // CHROME_BROWSER_NET_CHROME_EXTENSIONS_NETWORK_DELEGATE_H_ 86 #endif // CHROME_BROWSER_NET_CHROME_EXTENSIONS_NETWORK_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/net/chrome_extensions_network_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698