Index: content/browser/download/download_resource_handler.h |
diff --git a/content/browser/download/download_resource_handler.h b/content/browser/download/download_resource_handler.h |
index 9c8f53dd8d2853d8fbc19edbc2c1a2be79e64761..89327110ecf6534a29c1c5fa1614927fbc24f6d0 100644 |
--- a/content/browser/download/download_resource_handler.h |
+++ b/content/browser/download/download_resource_handler.h |
@@ -81,6 +81,10 @@ class CONTENT_EXPORT DownloadResourceHandler |
std::string DebugString() const; |
+ void set_parent_download_manager(DownloadManager* download_manager) { |
asanka
2015/11/20 19:57:46
Let's call this download_manager. The 'parent' rel
svaldez
2015/11/23 15:18:56
Done.
|
+ parent_download_manager_ = download_manager; |
+ } |
+ |
private: |
~DownloadResourceHandler() override; |
@@ -127,6 +131,10 @@ class CONTENT_EXPORT DownloadResourceHandler |
// For DCHECKing |
bool on_response_started_called_; |
+ // DownloadManager passed in by the owner of DownloadResourceHandler for cases |
+ // where WebContents is not available. |
+ DownloadManager* parent_download_manager_; |
+ |
static const int kReadBufSize = 32768; // bytes |
static const int kThrottleTimeMs = 200; // milliseconds |