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 CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_ | 5 #ifndef CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_ |
6 #define CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_ | 6 #define CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_ |
7 | 7 |
8 #include "base/gtest_prod_util.h" | 8 #include "base/gtest_prod_util.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 scoped_ptr<net::URLRequest> request_; | 120 scoped_ptr<net::URLRequest> request_; |
121 scoped_ptr<ResourceHandler> handler_; | 121 scoped_ptr<ResourceHandler> handler_; |
122 ResourceLoaderDelegate* delegate_; | 122 ResourceLoaderDelegate* delegate_; |
123 | 123 |
124 scoped_refptr<ResourceDispatcherHostLoginDelegate> login_delegate_; | 124 scoped_refptr<ResourceDispatcherHostLoginDelegate> login_delegate_; |
125 scoped_refptr<SSLClientAuthHandler> ssl_client_auth_handler_; | 125 scoped_refptr<SSLClientAuthHandler> ssl_client_auth_handler_; |
126 | 126 |
127 uint64 last_upload_position_; | 127 uint64 last_upload_position_; |
128 bool waiting_for_upload_progress_ack_; | 128 bool waiting_for_upload_progress_ack_; |
129 base::TimeTicks last_upload_ticks_; | 129 base::TimeTicks last_upload_ticks_; |
| 130 base::TimeTicks read_deferral_start_time_; |
130 | 131 |
131 // Indicates that we are in a state of being transferred to a new downstream | 132 // Indicates that we are in a state of being transferred to a new downstream |
132 // consumer. We are waiting for a notification to complete the transfer, at | 133 // consumer. We are waiting for a notification to complete the transfer, at |
133 // which point we'll receive a new ResourceHandler. | 134 // which point we'll receive a new ResourceHandler. |
134 bool is_transferring_; | 135 bool is_transferring_; |
135 | 136 |
136 scoped_ptr<net::ClientCertStore> client_cert_store_; | 137 scoped_ptr<net::ClientCertStore> client_cert_store_; |
137 | 138 |
138 base::WeakPtrFactory<ResourceLoader> weak_ptr_factory_; | 139 base::WeakPtrFactory<ResourceLoader> weak_ptr_factory_; |
139 | 140 |
140 DISALLOW_COPY_AND_ASSIGN(ResourceLoader); | 141 DISALLOW_COPY_AND_ASSIGN(ResourceLoader); |
141 }; | 142 }; |
142 | 143 |
143 } // namespace content | 144 } // namespace content |
144 | 145 |
145 #endif // CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_ | 146 #endif // CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_ |
OLD | NEW |