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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 GURL* new_url) OVERRIDE; | 134 GURL* new_url) OVERRIDE; |
135 virtual int OnBeforeSendHeaders(net::URLRequest* request, | 135 virtual int OnBeforeSendHeaders(net::URLRequest* request, |
136 const net::CompletionCallback& callback, | 136 const net::CompletionCallback& callback, |
137 net::HttpRequestHeaders* headers) OVERRIDE; | 137 net::HttpRequestHeaders* headers) OVERRIDE; |
138 virtual void OnSendHeaders(net::URLRequest* request, | 138 virtual void OnSendHeaders(net::URLRequest* request, |
139 const net::HttpRequestHeaders& headers) OVERRIDE; | 139 const net::HttpRequestHeaders& headers) OVERRIDE; |
140 virtual int OnHeadersReceived( | 140 virtual int OnHeadersReceived( |
141 net::URLRequest* request, | 141 net::URLRequest* request, |
142 const net::CompletionCallback& callback, | 142 const net::CompletionCallback& callback, |
143 const net::HttpResponseHeaders* original_response_headers, | 143 const net::HttpResponseHeaders* original_response_headers, |
144 scoped_refptr<net::HttpResponseHeaders>* override_response_headers) | 144 scoped_refptr<net::HttpResponseHeaders>* override_response_headers, |
145 OVERRIDE; | 145 GURL* allowed_unsafe_redirect_url) OVERRIDE; |
146 virtual void OnBeforeRedirect(net::URLRequest* request, | 146 virtual void OnBeforeRedirect(net::URLRequest* request, |
147 const GURL& new_location) OVERRIDE; | 147 const GURL& new_location) OVERRIDE; |
148 virtual void OnResponseStarted(net::URLRequest* request) OVERRIDE; | 148 virtual void OnResponseStarted(net::URLRequest* request) OVERRIDE; |
149 virtual void OnRawBytesRead(const net::URLRequest& request, | 149 virtual void OnRawBytesRead(const net::URLRequest& request, |
150 int bytes_read) OVERRIDE; | 150 int bytes_read) OVERRIDE; |
151 virtual void OnCompleted(net::URLRequest* request, bool started) OVERRIDE; | 151 virtual void OnCompleted(net::URLRequest* request, bool started) OVERRIDE; |
152 virtual void OnURLRequestDestroyed(net::URLRequest* request) OVERRIDE; | 152 virtual void OnURLRequestDestroyed(net::URLRequest* request) OVERRIDE; |
153 virtual void OnPACScriptError(int line_number, | 153 virtual void OnPACScriptError(int line_number, |
154 const base::string16& error) OVERRIDE; | 154 const base::string16& error) OVERRIDE; |
155 virtual net::NetworkDelegate::AuthRequiredResponse OnAuthRequired( | 155 virtual net::NetworkDelegate::AuthRequiredResponse OnAuthRequired( |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 | 212 |
213 // Total original size of all content before it was transferred. | 213 // Total original size of all content before it was transferred. |
214 int64 original_content_length_; | 214 int64 original_content_length_; |
215 | 215 |
216 scoped_ptr<ClientHints> client_hints_; | 216 scoped_ptr<ClientHints> client_hints_; |
217 | 217 |
218 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); | 218 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); |
219 }; | 219 }; |
220 | 220 |
221 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ | 221 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ |
OLD | NEW |