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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 const net::CompletionCallback& callback, | 133 const net::CompletionCallback& callback, |
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 GURL* new_url, |
143 const net::HttpResponseHeaders* original_response_headers, | 144 const net::HttpResponseHeaders* original_response_headers, |
144 scoped_refptr<net::HttpResponseHeaders>* override_response_headers) | 145 scoped_refptr<net::HttpResponseHeaders>* override_response_headers) |
145 OVERRIDE; | 146 OVERRIDE; |
146 virtual void OnBeforeRedirect(net::URLRequest* request, | 147 virtual void OnBeforeRedirect(net::URLRequest* request, |
147 const GURL& new_location) OVERRIDE; | 148 const GURL& new_location) OVERRIDE; |
148 virtual void OnResponseStarted(net::URLRequest* request) OVERRIDE; | 149 virtual void OnResponseStarted(net::URLRequest* request) OVERRIDE; |
149 virtual void OnRawBytesRead(const net::URLRequest& request, | 150 virtual void OnRawBytesRead(const net::URLRequest& request, |
150 int bytes_read) OVERRIDE; | 151 int bytes_read) OVERRIDE; |
151 virtual void OnCompleted(net::URLRequest* request, bool started) OVERRIDE; | 152 virtual void OnCompleted(net::URLRequest* request, bool started) OVERRIDE; |
152 virtual void OnURLRequestDestroyed(net::URLRequest* request) OVERRIDE; | 153 virtual void OnURLRequestDestroyed(net::URLRequest* request) OVERRIDE; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 | 213 |
213 // Total original size of all content before it was transferred. | 214 // Total original size of all content before it was transferred. |
214 int64 original_content_length_; | 215 int64 original_content_length_; |
215 | 216 |
216 scoped_ptr<ClientHints> client_hints_; | 217 scoped_ptr<ClientHints> client_hints_; |
217 | 218 |
218 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); | 219 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); |
219 }; | 220 }; |
220 | 221 |
221 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ | 222 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ |
OLD | NEW |