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

Unified Diff: third_party/WebKit/Source/core/page/ScopedPageLoadDeferrer.h

Issue 2174263002: Defer loads in new pages/frames if ScopedPageLoadDeferral is active (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make the unfortunate hack slightly less ugly. Created 4 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: third_party/WebKit/Source/core/page/ScopedPageLoadDeferrer.h
diff --git a/third_party/WebKit/Source/core/page/ScopedPageLoadDeferrer.h b/third_party/WebKit/Source/core/page/ScopedPageLoadDeferrer.h
index f0c66475873ca82e20b638793e13265582196fb0..4a8ab98e2d35648121b925f3791ca61b7b5618c5 100644
--- a/third_party/WebKit/Source/core/page/ScopedPageLoadDeferrer.h
+++ b/third_party/WebKit/Source/core/page/ScopedPageLoadDeferrer.h
@@ -21,26 +21,21 @@
#define ScopedPageLoadDeferrer_h
#include "core/CoreExport.h"
-#include "platform/heap/Handle.h"
-#include "wtf/RefPtr.h"
-#include "wtf/Vector.h"
+#include "wtf/Allocator.h"
+#include "wtf/Noncopyable.h"
namespace blink {
-class LocalFrame;
class Page;
class CORE_EXPORT ScopedPageLoadDeferrer final {
WTF_MAKE_NONCOPYABLE(ScopedPageLoadDeferrer);
USING_FAST_MALLOC(ScopedPageLoadDeferrer);
public:
- explicit ScopedPageLoadDeferrer(Page* exclusion = nullptr);
+ explicit ScopedPageLoadDeferrer();
~ScopedPageLoadDeferrer();
-private:
- void setDefersLoading(bool);
-
- Vector<Persistent<Page>, 16> m_deferredPages;
+ static bool isActive();
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/page/Page.cpp ('k') | third_party/WebKit/Source/core/page/ScopedPageLoadDeferrer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698