| 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" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 void StartRequest(); | 33 void StartRequest(); |
| 34 void CancelRequest(bool from_renderer); | 34 void CancelRequest(bool from_renderer); |
| 35 | 35 |
| 36 void ReportUploadProgress(); | 36 void ReportUploadProgress(); |
| 37 | 37 |
| 38 bool is_transferring() const { return is_transferring_; } | 38 bool is_transferring() const { return is_transferring_; } |
| 39 void MarkAsTransferring(); | 39 void MarkAsTransferring(); |
| 40 void WillCompleteTransfer(); | 40 void WillCompleteTransfer(); |
| 41 void CompleteTransfer(scoped_ptr<ResourceHandler> new_handler); | 41 void CompleteTransfer(scoped_ptr<ResourceHandler> new_handler); |
| 42 void ChangePriority(net::RequestPriority new_priority); |
| 42 | 43 |
| 43 net::URLRequest* request() { return request_.get(); } | 44 net::URLRequest* request() { return request_.get(); } |
| 44 ResourceRequestInfoImpl* GetRequestInfo(); | 45 ResourceRequestInfoImpl* GetRequestInfo(); |
| 45 | 46 |
| 46 void ClearLoginDelegate(); | 47 void ClearLoginDelegate(); |
| 47 void ClearSSLClientAuthHandler(); | 48 void ClearSSLClientAuthHandler(); |
| 48 | 49 |
| 49 // IPC message handlers: | 50 // IPC message handlers: |
| 50 void OnUploadProgressACK(); | 51 void OnUploadProgressACK(); |
| 51 | 52 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 bool is_transferring_; | 116 bool is_transferring_; |
| 116 | 117 |
| 117 base::WeakPtrFactory<ResourceLoader> weak_ptr_factory_; | 118 base::WeakPtrFactory<ResourceLoader> weak_ptr_factory_; |
| 118 | 119 |
| 119 DISALLOW_COPY_AND_ASSIGN(ResourceLoader); | 120 DISALLOW_COPY_AND_ASSIGN(ResourceLoader); |
| 120 }; | 121 }; |
| 121 | 122 |
| 122 } // namespace content | 123 } // namespace content |
| 123 | 124 |
| 124 #endif // CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_ | 125 #endif // CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_ |
| OLD | NEW |