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 #ifndef CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ |
6 #define CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ | 6 #define CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 const net::HttpResponseHeaders* original_response_headers, | 146 const net::HttpResponseHeaders* original_response_headers, |
147 scoped_refptr<net::HttpResponseHeaders>* override_response_headers, | 147 scoped_refptr<net::HttpResponseHeaders>* override_response_headers, |
148 GURL* allowed_unsafe_redirect_url) override; | 148 GURL* allowed_unsafe_redirect_url) override; |
149 void OnBeforeRedirect(net::URLRequest* request, | 149 void OnBeforeRedirect(net::URLRequest* request, |
150 const GURL& new_location) override; | 150 const GURL& new_location) override; |
151 void OnResponseStarted(net::URLRequest* request) override; | 151 void OnResponseStarted(net::URLRequest* request) override; |
152 void OnNetworkBytesReceived(const net::URLRequest& request, | 152 void OnNetworkBytesReceived(const net::URLRequest& request, |
153 int64_t bytes_received) override; | 153 int64_t bytes_received) override; |
154 void OnCompleted(net::URLRequest* request, bool started) override; | 154 void OnCompleted(net::URLRequest* request, bool started) override; |
155 void OnURLRequestDestroyed(net::URLRequest* request) override; | 155 void OnURLRequestDestroyed(net::URLRequest* request) override; |
| 156 void OnURLRequestJobOrphaned(net::URLRequest* request) override; |
156 void OnPACScriptError(int line_number, const base::string16& error) override; | 157 void OnPACScriptError(int line_number, const base::string16& error) override; |
157 net::NetworkDelegate::AuthRequiredResponse OnAuthRequired( | 158 net::NetworkDelegate::AuthRequiredResponse OnAuthRequired( |
158 net::URLRequest* request, | 159 net::URLRequest* request, |
159 const net::AuthChallengeInfo& auth_info, | 160 const net::AuthChallengeInfo& auth_info, |
160 const AuthCallback& callback, | 161 const AuthCallback& callback, |
161 net::AuthCredentials* credentials) override; | 162 net::AuthCredentials* credentials) override; |
162 bool OnCanGetCookies(const net::URLRequest& request, | 163 bool OnCanGetCookies(const net::URLRequest& request, |
163 const net::CookieList& cookie_list) override; | 164 const net::CookieList& cookie_list) override; |
164 bool OnCanSetCookie(const net::URLRequest& request, | 165 bool OnCanSetCookie(const net::URLRequest& request, |
165 const std::string& cookie_line, | 166 const std::string& cookie_line, |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 | 202 |
202 // When true, allow access to all file:// URLs. | 203 // When true, allow access to all file:// URLs. |
203 static bool g_allow_file_access_; | 204 static bool g_allow_file_access_; |
204 | 205 |
205 bool experimental_web_platform_features_enabled_; | 206 bool experimental_web_platform_features_enabled_; |
206 | 207 |
207 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); | 208 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); |
208 }; | 209 }; |
209 | 210 |
210 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ | 211 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ |
OLD | NEW |