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

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

Issue 2580703003: Make sure pages that are closing but not yet closed are still suspended. (Closed)
Patch Set: revert no longer needed test change Created 4 years 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/ScopedPageSuspender.h
diff --git a/third_party/WebKit/Source/core/page/ScopedPageSuspender.h b/third_party/WebKit/Source/core/page/ScopedPageSuspender.h
index 5b30bff86920949f442d2e6726a4d554dac2d97a..2889f8a0453b3f68f112347679bced1b218d49c0 100644
--- a/third_party/WebKit/Source/core/page/ScopedPageSuspender.h
+++ b/third_party/WebKit/Source/core/page/ScopedPageSuspender.h
@@ -26,6 +26,8 @@
namespace blink {
+class Page;
+
class CORE_EXPORT ScopedPageSuspender final {
WTF_MAKE_NONCOPYABLE(ScopedPageSuspender);
USING_FAST_MALLOC(ScopedPageSuspender);
@@ -34,6 +36,10 @@ class CORE_EXPORT ScopedPageSuspender final {
explicit ScopedPageSuspender();
~ScopedPageSuspender();
+ private:
+ friend class Page;
+
+ static void setSuspended(bool);
static bool isActive();
};

Powered by Google App Engine
This is Rietveld 408576698