Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 NET_URL_REQUEST_URL_REQUEST_H_ | 5 #ifndef NET_URL_REQUEST_URL_REQUEST_H_ |
| 6 #define NET_URL_REQUEST_URL_REQUEST_H_ | 6 #define NET_URL_REQUEST_URL_REQUEST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 194 // is specified. | 194 // is specified. |
| 195 virtual bool CanGetCookies(URLRequest* request); | 195 virtual bool CanGetCookies(URLRequest* request); |
| 196 | 196 |
| 197 // Called when a cookie is set to allow the delegate to block access to the | 197 // Called when a cookie is set to allow the delegate to block access to the |
| 198 // cookie. This method will never be invoked when LOAD_DO_NOT_SAVE_COOKIES | 198 // cookie. This method will never be invoked when LOAD_DO_NOT_SAVE_COOKIES |
| 199 // is specified. | 199 // is specified. |
| 200 virtual bool CanSetCookie(URLRequest* request, | 200 virtual bool CanSetCookie(URLRequest* request, |
| 201 const std::string& cookie_line, | 201 const std::string& cookie_line, |
| 202 CookieOptions* options); | 202 CookieOptions* options); |
| 203 | 203 |
| 204 // Called when an X-Auto-Login header is seen. |value| is the | |
|
darin (slow to review)
2011/07/01 17:46:21
i don't know why we need the network stack to know
| |
| 205 // value associated with that header. | |
| 206 virtual void OnAutoLogin(URLRequest* request, const std::string& value); | |
| 207 | |
| 204 // After calling Start(), the delegate will receive an OnResponseStarted | 208 // After calling Start(), the delegate will receive an OnResponseStarted |
| 205 // callback when the request has completed. If an error occurred, the | 209 // callback when the request has completed. If an error occurred, the |
| 206 // request->status() will be set. On success, all redirects have been | 210 // request->status() will be set. On success, all redirects have been |
| 207 // followed and the final response is beginning to arrive. At this point, | 211 // followed and the final response is beginning to arrive. At this point, |
| 208 // meta data about the response is available, including for example HTTP | 212 // meta data about the response is available, including for example HTTP |
| 209 // response headers if this is a request for a HTTP resource. | 213 // response headers if this is a request for a HTTP resource. |
| 210 virtual void OnResponseStarted(URLRequest* request) = 0; | 214 virtual void OnResponseStarted(URLRequest* request) = 0; |
| 211 | 215 |
| 212 // Called when the a Read of the response body is completed after an | 216 // Called when the a Read of the response body is completed after an |
| 213 // IO_PENDING status from a Read() call. | 217 // IO_PENDING status from a Read() call. |
| (...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 671 // Callback passed to the network delegate to notify us when a blocked request | 675 // Callback passed to the network delegate to notify us when a blocked request |
| 672 // is ready to be resumed or canceled. | 676 // is ready to be resumed or canceled. |
| 673 CompletionCallbackImpl<URLRequest> before_request_callback_; | 677 CompletionCallbackImpl<URLRequest> before_request_callback_; |
| 674 | 678 |
| 675 DISALLOW_COPY_AND_ASSIGN(URLRequest); | 679 DISALLOW_COPY_AND_ASSIGN(URLRequest); |
| 676 }; | 680 }; |
| 677 | 681 |
| 678 } // namespace net | 682 } // namespace net |
| 679 | 683 |
| 680 #endif // NET_URL_REQUEST_URL_REQUEST_H_ | 684 #endif // NET_URL_REQUEST_URL_REQUEST_H_ |
| OLD | NEW |