Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1264)

Unified Diff: content/browser/loader/resource_handler.h

Issue 2130493002: Implement THROTTLED priority semantics. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@NetworkStreamThrottler
Patch Set: Remove comparison between iterators from different sequences. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698