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

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

Issue 129173002: Adds the new URLRequest::OnBeforeNetworkStart hook to the (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@defer_1_net
Patch Set: Created 6 years, 11 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/throttling_resource_handler.h
diff --git a/content/browser/loader/throttling_resource_handler.h b/content/browser/loader/throttling_resource_handler.h
index 9f98921e26fe55a7932e455bc1fb728f788edc28..9de69512165d93a18e1fcfc2980ad2a3b5a5383e 100644
--- a/content/browser/loader/throttling_resource_handler.h
+++ b/content/browser/loader/throttling_resource_handler.h
@@ -39,6 +39,9 @@ class ThrottlingResourceHandler : public LayeredResourceHandler,
bool* defer) OVERRIDE;
virtual bool OnWillStart(int request_id, const GURL& url,
bool* defer) OVERRIDE;
+ virtual bool OnBeforeNetworkStart(int request_id,
+ const GURL& url,
+ bool* defer) OVERRIDE;
// ResourceController implementation:
virtual void Cancel() OVERRIDE;
@@ -48,6 +51,7 @@ class ThrottlingResourceHandler : public LayeredResourceHandler,
private:
void ResumeStart();
+ void ResumeNetworkStart();
void ResumeRedirect();
void ResumeResponse();
@@ -58,6 +62,7 @@ class ThrottlingResourceHandler : public LayeredResourceHandler,
enum DeferredStage {
DEFERRED_NONE,
DEFERRED_START,
+ DEFERRED_NETWORK_START,
DEFERRED_REDIRECT,
DEFERRED_RESPONSE
};

Powered by Google App Engine
This is Rietveld 408576698