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/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "content/browser/loader/resource_handler.h" | 10 #include "content/browser/loader/resource_handler.h" |
11 #include "content/browser/ssl/ssl_error_handler.h" | 11 #include "content/browser/ssl/ssl_error_handler.h" |
12 #include "content/public/browser/resource_controller.h" | 12 #include "content/public/browser/resource_controller.h" |
13 #include "net/url_request/url_request.h" | 13 #include "net/url_request/url_request.h" |
14 | 14 |
| 15 namespace net { |
| 16 class ClientCertStore; |
| 17 } |
| 18 |
15 namespace content { | 19 namespace content { |
16 class ResourceDispatcherHostLoginDelegate; | 20 class ResourceDispatcherHostLoginDelegate; |
17 class ResourceLoaderDelegate; | 21 class ResourceLoaderDelegate; |
18 class ResourceRequestInfoImpl; | 22 class ResourceRequestInfoImpl; |
19 class SSLClientAuthHandler; | 23 class SSLClientAuthHandler; |
20 | 24 |
21 // This class is responsible for driving the URLRequest (i.e., calling Start, | 25 // This class is responsible for driving the URLRequest (i.e., calling Start, |
22 // Read, and servicing events). It has a ResourceHandler, which is typically a | 26 // Read, and servicing events). It has a ResourceHandler, which is typically a |
23 // chain of ResourceHandlers, and is the ResourceController for its handler. | 27 // chain of ResourceHandlers, and is the ResourceController for its handler. |
24 class ResourceLoader : public net::URLRequest::Delegate, | 28 class ResourceLoader : public net::URLRequest::Delegate, |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 | 111 |
108 uint64 last_upload_position_; | 112 uint64 last_upload_position_; |
109 bool waiting_for_upload_progress_ack_; | 113 bool waiting_for_upload_progress_ack_; |
110 base::TimeTicks last_upload_ticks_; | 114 base::TimeTicks last_upload_ticks_; |
111 | 115 |
112 // Indicates that we are in a state of being transferred to a new downstream | 116 // Indicates that we are in a state of being transferred to a new downstream |
113 // consumer. We are waiting for a notification to complete the transfer, at | 117 // consumer. We are waiting for a notification to complete the transfer, at |
114 // which point we'll receive a new ResourceHandler. | 118 // which point we'll receive a new ResourceHandler. |
115 bool is_transferring_; | 119 bool is_transferring_; |
116 | 120 |
| 121 scoped_ptr<net::ClientCertStore> client_cert_store_; |
| 122 |
117 base::WeakPtrFactory<ResourceLoader> weak_ptr_factory_; | 123 base::WeakPtrFactory<ResourceLoader> weak_ptr_factory_; |
118 | 124 |
119 DISALLOW_COPY_AND_ASSIGN(ResourceLoader); | 125 DISALLOW_COPY_AND_ASSIGN(ResourceLoader); |
120 }; | 126 }; |
121 | 127 |
122 } // namespace content | 128 } // namespace content |
123 | 129 |
124 #endif // CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_ | 130 #endif // CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_ |
OLD | NEW |