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

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

Issue 2702503002: Block renderer-initiated main frame navigations to data URLs (Closed)
Patch Set: Fix downloads, plugin handling and browser side navigations Created 3 years, 9 months 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/async_resource_handler.h
diff --git a/content/browser/loader/async_resource_handler.h b/content/browser/loader/async_resource_handler.h
index 85d98d4133397c82dd170b0bee4b1ec95dbcb47f..0deef0ed4b26189666f0fa0ca776d90f8760a939 100644
--- a/content/browser/loader/async_resource_handler.h
+++ b/content/browser/loader/async_resource_handler.h
@@ -63,6 +63,12 @@ class CONTENT_EXPORT AsyncResourceHandler : public ResourceHandler,
private:
class InliningHelper;
+ // Asynchronously called by OnResponseStarted. If |should_cancel| is true,
+ // cancels the resource load.
+ void OnResponseStartedInternal(ResourceResponse* response,
+ std::unique_ptr<ResourceController> controller,
+ bool should_cancel);
+
// IPC message handlers:
void OnFollowRedirect(int request_id);
void OnDataReceivedACK(int request_id);

Powered by Google App Engine
This is Rietveld 408576698