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 24 matching lines...) Expand all Loading... |
35 scoped_ptr<ResourceHandler> handler, | 35 scoped_ptr<ResourceHandler> handler, |
36 ResourceLoaderDelegate* delegate); | 36 ResourceLoaderDelegate* delegate); |
37 virtual ~ResourceLoader(); | 37 virtual ~ResourceLoader(); |
38 | 38 |
39 void StartRequest(); | 39 void StartRequest(); |
40 void CancelRequest(bool from_renderer); | 40 void CancelRequest(bool from_renderer); |
41 | 41 |
42 void ReportUploadProgress(); | 42 void ReportUploadProgress(); |
43 | 43 |
44 bool is_transferring() const { return is_transferring_; } | 44 bool is_transferring() const { return is_transferring_; } |
45 void MarkAsTransferring(); | 45 void MarkAsTransferring(const GURL& target_url); |
46 void WillCompleteTransfer(); | 46 void WillCompleteTransfer(); |
47 void CompleteTransfer(scoped_ptr<ResourceHandler> new_handler); | 47 void CompleteTransfer(scoped_ptr<ResourceHandler> new_handler); |
48 | 48 |
49 net::URLRequest* request() { return request_.get(); } | 49 net::URLRequest* request() { return request_.get(); } |
50 ResourceRequestInfoImpl* GetRequestInfo(); | 50 ResourceRequestInfoImpl* GetRequestInfo(); |
51 | 51 |
52 void ClearLoginDelegate(); | 52 void ClearLoginDelegate(); |
53 void ClearSSLClientAuthHandler(); | 53 void ClearSSLClientAuthHandler(); |
54 | 54 |
55 // IPC message handlers: | 55 // IPC message handlers: |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 scoped_ptr<net::ClientCertStore> client_cert_store_; | 137 scoped_ptr<net::ClientCertStore> client_cert_store_; |
138 | 138 |
139 base::WeakPtrFactory<ResourceLoader> weak_ptr_factory_; | 139 base::WeakPtrFactory<ResourceLoader> weak_ptr_factory_; |
140 | 140 |
141 DISALLOW_COPY_AND_ASSIGN(ResourceLoader); | 141 DISALLOW_COPY_AND_ASSIGN(ResourceLoader); |
142 }; | 142 }; |
143 | 143 |
144 } // namespace content | 144 } // namespace content |
145 | 145 |
146 #endif // CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_ | 146 #endif // CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_ |
OLD | NEW |