| 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> |
| 9 |
| 8 #include <string> | 10 #include <string> |
| 9 | 11 |
| 10 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 11 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 12 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
| 13 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
| 14 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/values.h" | 17 #include "base/values.h" |
| 16 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_metr
ics.h" | 18 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_metr
ics.h" |
| 17 #include "net/base/network_delegate_impl.h" | 19 #include "net/base/network_delegate_impl.h" |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 const net::HttpRequestHeaders& headers) override; | 142 const net::HttpRequestHeaders& headers) override; |
| 141 int OnHeadersReceived( | 143 int OnHeadersReceived( |
| 142 net::URLRequest* request, | 144 net::URLRequest* request, |
| 143 const net::CompletionCallback& callback, | 145 const net::CompletionCallback& callback, |
| 144 const net::HttpResponseHeaders* original_response_headers, | 146 const net::HttpResponseHeaders* original_response_headers, |
| 145 scoped_refptr<net::HttpResponseHeaders>* override_response_headers, | 147 scoped_refptr<net::HttpResponseHeaders>* override_response_headers, |
| 146 GURL* allowed_unsafe_redirect_url) override; | 148 GURL* allowed_unsafe_redirect_url) override; |
| 147 void OnBeforeRedirect(net::URLRequest* request, | 149 void OnBeforeRedirect(net::URLRequest* request, |
| 148 const GURL& new_location) override; | 150 const GURL& new_location) override; |
| 149 void OnResponseStarted(net::URLRequest* request) override; | 151 void OnResponseStarted(net::URLRequest* request) override; |
| 150 void OnRawBytesRead(const net::URLRequest& request, int bytes_read) override; | 152 void OnNetworkBytesReceived(const net::URLRequest& request, |
| 153 int64_t bytes_received) override; |
| 151 void OnCompleted(net::URLRequest* request, bool started) override; | 154 void OnCompleted(net::URLRequest* request, bool started) override; |
| 152 void OnURLRequestDestroyed(net::URLRequest* request) override; | 155 void OnURLRequestDestroyed(net::URLRequest* request) override; |
| 153 void OnPACScriptError(int line_number, const base::string16& error) override; | 156 void OnPACScriptError(int line_number, const base::string16& error) override; |
| 154 net::NetworkDelegate::AuthRequiredResponse OnAuthRequired( | 157 net::NetworkDelegate::AuthRequiredResponse OnAuthRequired( |
| 155 net::URLRequest* request, | 158 net::URLRequest* request, |
| 156 const net::AuthChallengeInfo& auth_info, | 159 const net::AuthChallengeInfo& auth_info, |
| 157 const AuthCallback& callback, | 160 const AuthCallback& callback, |
| 158 net::AuthCredentials* credentials) override; | 161 net::AuthCredentials* credentials) override; |
| 159 bool OnCanGetCookies(const net::URLRequest& request, | 162 bool OnCanGetCookies(const net::URLRequest& request, |
| 160 const net::CookieList& cookie_list) override; | 163 const net::CookieList& cookie_list) override; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 | 201 |
| 199 // When true, allow access to all file:// URLs. | 202 // When true, allow access to all file:// URLs. |
| 200 static bool g_allow_file_access_; | 203 static bool g_allow_file_access_; |
| 201 | 204 |
| 202 bool experimental_web_platform_features_enabled_; | 205 bool experimental_web_platform_features_enabled_; |
| 203 | 206 |
| 204 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); | 207 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); |
| 205 }; | 208 }; |
| 206 | 209 |
| 207 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ | 210 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ |
| OLD | NEW |