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

Unified Diff: content/browser/web_contents/web_contents_impl.h

Issue 1214723012: Track whether a created WebContents has a resume pending. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing logic Created 5 years, 5 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/web_contents/web_contents_impl.h
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
index f580046a189aa3897be902760153af9e2e7514da..fc88bd23344b2896cfa52490c36b8109d246b4c8 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -924,6 +924,9 @@ class CONTENT_EXPORT WebContentsImpl
// called once as this call also removes it from the internal map.
WebContentsImpl* GetCreatedWindow(int route_id);
+ // Tracks that this WebContents needs to unblock requests to the renderer.
+ void SetIsResumePending() { is_resume_pending_ = true; }
+
// Tracking loading progress -------------------------------------------------
// Resets the tracking state of the current load progress.
@@ -1092,6 +1095,10 @@ class CONTENT_EXPORT WebContentsImpl
uint64 upload_size_;
uint64 upload_position_;
+ // Whether this WebContents needs to resume loading after its creation.
+ // See ResumeLoadingCreatedWebContents.
+ bool is_resume_pending_;
+
// Data for current page -----------------------------------------------------
// When a title cannot be taken from any entry, this title will be used.

Powered by Google App Engine
This is Rietveld 408576698