| 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 782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 793 bool blocked_on_delegate_; | 793 bool blocked_on_delegate_; |
| 794 | 794 |
| 795 // An optional parameter that provides additional information about the load | 795 // An optional parameter that provides additional information about the load |
| 796 // state. Only used with the LOAD_STATE_WAITING_FOR_DELEGATE state. | 796 // state. Only used with the LOAD_STATE_WAITING_FOR_DELEGATE state. |
| 797 string16 load_state_param_; | 797 string16 load_state_param_; |
| 798 | 798 |
| 799 base::debug::LeakTracker<URLRequest> leak_tracker_; | 799 base::debug::LeakTracker<URLRequest> leak_tracker_; |
| 800 | 800 |
| 801 // Callback passed to the network delegate to notify us when a blocked request | 801 // Callback passed to the network delegate to notify us when a blocked request |
| 802 // is ready to be resumed or canceled. | 802 // is ready to be resumed or canceled. |
| 803 OldCompletionCallbackImpl<URLRequest> before_request_callback_; | 803 CompletionCallback before_request_callback_; |
| 804 | 804 |
| 805 // Safe-guard to ensure that we do not send multiple "I am completed" | 805 // Safe-guard to ensure that we do not send multiple "I am completed" |
| 806 // messages to network delegate. | 806 // messages to network delegate. |
| 807 // TODO(battre): Remove this. http://crbug.com/89049 | 807 // TODO(battre): Remove this. http://crbug.com/89049 |
| 808 bool has_notified_completion_; | 808 bool has_notified_completion_; |
| 809 | 809 |
| 810 // Authentication data used by the NetworkDelegate for this request, | 810 // Authentication data used by the NetworkDelegate for this request, |
| 811 // if one is present. |auth_credentials_| may be filled in when calling | 811 // if one is present. |auth_credentials_| may be filled in when calling |
| 812 // |NotifyAuthRequired| on the NetworkDelegate. |auth_info_| holds | 812 // |NotifyAuthRequired| on the NetworkDelegate. |auth_info_| holds |
| 813 // the authentication challenge being handled by |NotifyAuthRequired|. | 813 // the authentication challenge being handled by |NotifyAuthRequired|. |
| 814 AuthCredentials auth_credentials_; | 814 AuthCredentials auth_credentials_; |
| 815 scoped_refptr<AuthChallengeInfo> auth_info_; | 815 scoped_refptr<AuthChallengeInfo> auth_info_; |
| 816 | 816 |
| 817 DISALLOW_COPY_AND_ASSIGN(URLRequest); | 817 DISALLOW_COPY_AND_ASSIGN(URLRequest); |
| 818 }; | 818 }; |
| 819 | 819 |
| 820 } // namespace net | 820 } // namespace net |
| 821 | 821 |
| 822 #endif // NET_URL_REQUEST_URL_REQUEST_H_ | 822 #endif // NET_URL_REQUEST_URL_REQUEST_H_ |
| OLD | NEW |