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

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

Issue 2466843002: Cancel the request when URLLoader is gone (Closed)
Patch Set: fix 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/mojo_async_resource_handler.h
diff --git a/content/browser/loader/mojo_async_resource_handler.h b/content/browser/loader/mojo_async_resource_handler.h
index 5df87fd090e81f1ab617e58f8578d237cec72d17..87278b9429580a2c7625f1e50338d8174607e32a 100644
--- a/content/browser/loader/mojo_async_resource_handler.h
+++ b/content/browser/loader/mojo_async_resource_handler.h
@@ -68,7 +68,6 @@ class CONTENT_EXPORT MojoAsyncResourceHandler
// mojom::URLLoader implementation
void FollowRedirect() override;
- void Cancel() override;
void ResumeForTesting();
static void SetAllocationSizeForTesting(size_t size);
@@ -96,6 +95,7 @@ class CONTENT_EXPORT MojoAsyncResourceHandler
void OnDefer();
bool CheckForSufficientResource();
void OnWritable(MojoResult result);
+ void Cancel();
ResourceDispatcherHostImpl* rdh_;
mojo::Binding<mojom::URLLoader> binding_;

Powered by Google App Engine
This is Rietveld 408576698