| Index: chrome/browser/renderer_host/download_resource_handler.h
|
| diff --git a/chrome/browser/renderer_host/download_resource_handler.h b/chrome/browser/renderer_host/download_resource_handler.h
|
| index 67ad0eecd41f9db8a5cde8a3d8ca164e610072d7..108be86075936db0c8ba1962f8493c3779cbf617 100644
|
| --- a/chrome/browser/renderer_host/download_resource_handler.h
|
| +++ b/chrome/browser/renderer_host/download_resource_handler.h
|
| @@ -8,6 +8,7 @@
|
|
|
| #include <string>
|
|
|
| +#include "base/callback.h"
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/timer.h"
|
| #include "chrome/browser/download/download_file.h"
|
| @@ -25,6 +26,8 @@ class URLRequest;
|
| // Forwards data to the download thread.
|
| class DownloadResourceHandler : public ResourceHandler {
|
| public:
|
| + typedef base::Callback<void(int)> OnResponseStartedCallback;
|
| + typedef base::Callback<void(int)> OnUnstartableCallback;
|
| DownloadResourceHandler(ResourceDispatcherHost* rdh,
|
| int render_process_host_id,
|
| int render_view_id,
|
| @@ -33,6 +36,8 @@ class DownloadResourceHandler : public ResourceHandler {
|
| DownloadFileManager* download_file_manager,
|
| net::URLRequest* request,
|
| bool save_as,
|
| + OnResponseStartedCallback started_cb,
|
| + OnUnstartableCallback unstartable_cb,
|
| const DownloadSaveInfo& save_info);
|
|
|
| virtual bool OnUploadProgress(int request_id, uint64 position, uint64 size);
|
| @@ -84,6 +89,8 @@ class DownloadResourceHandler : public ResourceHandler {
|
| DownloadFileManager* download_file_manager_;
|
| net::URLRequest* request_;
|
| bool save_as_; // Request was initiated via "Save As" by the user.
|
| + OnResponseStartedCallback started_cb_;
|
| + OnUnstartableCallback unstartable_cb_;
|
| DownloadSaveInfo save_info_;
|
| scoped_ptr<DownloadBuffer> buffer_;
|
| ResourceDispatcherHost* rdh_;
|
|
|