Index: content/browser/loader/resource_handler.h |
diff --git a/content/browser/loader/resource_handler.h b/content/browser/loader/resource_handler.h |
index 02ef6b87f1244c7ec59f012aefe9a1342ac8f588..32cd6a9c3ed04ed449b77e1f162350ec299eaca9 100644 |
--- a/content/browser/loader/resource_handler.h |
+++ b/content/browser/loader/resource_handler.h |
@@ -18,6 +18,7 @@ |
#include "base/sequenced_task_runner_helpers.h" |
#include "base/threading/non_thread_safe.h" |
#include "content/common/content_export.h" |
+#include "net/base/net_errors.h" |
class GURL; |
@@ -94,6 +95,10 @@ class CONTENT_EXPORT ResourceHandler |
virtual void OnResponseCompleted(const net::URLRequestStatus& status, |
bool* defer) = 0; |
+ // The request has been cancelled. Set |*defer| to true to defer cancellation |
+ // to a later time. Otherwise, the request will be destroyed on return. |
+ virtual void OnCancel(net::Error net_error, bool* defer); |
mmenke
2016/11/07 15:59:25
I don't think this is supposed to be part of this
|
+ |
// This notification is synthesized by the RedirectToFileResourceHandler |
// to indicate progress of 'download_to_file' requests. OnReadCompleted |
// calls are consumed by the RedirectToFileResourceHandler and replaced |