Chromium Code Reviews| Index: content/browser/loader/async_resource_handler.h |
| diff --git a/content/browser/loader/async_resource_handler.h b/content/browser/loader/async_resource_handler.h |
| index 0992841612746a7c0cc8288d3d4456fcddb6b2fa..e8341711922fd0ca167dcc929aedaa9e6357538c 100644 |
| --- a/content/browser/loader/async_resource_handler.h |
| +++ b/content/browser/loader/async_resource_handler.h |
| @@ -62,6 +62,12 @@ class AsyncResourceHandler : public ResourceHandler, |
| virtual void OnDataDownloaded(int request_id, |
| int bytes_downloaded) OVERRIDE; |
| + // Once detached, no more data is sent to the renderer process. Only |
| + // completion and error notification. This is useful for prefetches where the |
| + // render process does not need the data and the download may persist longer |
| + // than the render process. |
| + void DetachReads(); |
|
mmenke
2013/10/11 16:39:07
This is no longer used, right?
jkarlin2
2013/10/11 18:37:04
Done. And removed other changes to the file.
|
| + |
| private: |
| // IPC message handlers: |
| void OnFollowRedirect(int request_id, |
| @@ -87,6 +93,7 @@ class AsyncResourceHandler : public ResourceHandler, |
| bool has_checked_for_sufficient_resources_; |
| bool sent_received_response_msg_; |
| bool sent_first_data_msg_; |
| + bool detached_reads_; |
| DISALLOW_COPY_AND_ASSIGN(AsyncResourceHandler); |
| }; |