| 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_RENDERER_HOST_RESOURCE_LOADER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RESOURCE_LOADER_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RESOURCE_LOADER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_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/renderer_host/resource_handler.h" | 10 #include "content/browser/renderer_host/resource_handler.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 ResourceLoaderDelegate* delegate); | 32 ResourceLoaderDelegate* delegate); |
| 33 virtual ~ResourceLoader(); | 33 virtual ~ResourceLoader(); |
| 34 | 34 |
| 35 void StartRequest(); | 35 void StartRequest(); |
| 36 void CancelRequest(bool from_renderer); | 36 void CancelRequest(bool from_renderer); |
| 37 | 37 |
| 38 void ReportUploadProgress(); | 38 void ReportUploadProgress(); |
| 39 | 39 |
| 40 bool is_transferring() const { return is_transferring_; } | 40 bool is_transferring() const { return is_transferring_; } |
| 41 void MarkAsTransferring(); | 41 void MarkAsTransferring(); |
| 42 void WillCompleteTransfer(); |
| 42 void CompleteTransfer(scoped_ptr<ResourceHandler> new_handler); | 43 void CompleteTransfer(scoped_ptr<ResourceHandler> new_handler); |
| 43 | 44 |
| 44 net::URLRequest* request() { return request_.get(); } | 45 net::URLRequest* request() { return request_.get(); } |
| 45 ResourceRequestInfoImpl* GetRequestInfo(); | 46 ResourceRequestInfoImpl* GetRequestInfo(); |
| 46 | 47 |
| 47 void ClearLoginDelegate(); | 48 void ClearLoginDelegate(); |
| 48 void ClearSSLClientAuthHandler(); | 49 void ClearSSLClientAuthHandler(); |
| 49 | 50 |
| 50 // IPC message handlers: | 51 // IPC message handlers: |
| 51 void OnUploadProgressACK(); | 52 void OnUploadProgressACK(); |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 // consumer. We are waiting for a notification to complete the transfer, at | 113 // consumer. We are waiting for a notification to complete the transfer, at |
| 113 // which point we'll receive a new ResourceHandler. | 114 // which point we'll receive a new ResourceHandler. |
| 114 bool is_transferring_; | 115 bool is_transferring_; |
| 115 | 116 |
| 116 DISALLOW_COPY_AND_ASSIGN(ResourceLoader); | 117 DISALLOW_COPY_AND_ASSIGN(ResourceLoader); |
| 117 }; | 118 }; |
| 118 | 119 |
| 119 } // namespace content | 120 } // namespace content |
| 120 | 121 |
| 121 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_LOADER_H_ | 122 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_LOADER_H_ |
| OLD | NEW |