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

Unified Diff: third_party/WebKit/Source/core/dom/DocumentShutdownNotifier.h

Issue 2939223003: Add DocumentShutdown{Notifier,Observer} (Closed)
Patch Set: Add CORE_EXPORT to DocumentShutdownNotifier Created 3 years, 6 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/dom/DocumentShutdownNotifier.h
diff --git a/third_party/WebKit/Source/core/dom/DocumentShutdownNotifier.h b/third_party/WebKit/Source/core/dom/DocumentShutdownNotifier.h
new file mode 100644
index 0000000000000000000000000000000000000000..2fc233682a2ee51516d32c9722bb836b681e7699
--- /dev/null
+++ b/third_party/WebKit/Source/core/dom/DocumentShutdownNotifier.h
@@ -0,0 +1,29 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef DocumentShutdownNotifier_h
+#define DocumentShutdownNotifier_h
+
+#include "core/CoreExport.h"
+#include "platform/LifecycleNotifier.h"
+
+namespace blink {
+
+class Document;
+class DocumentShutdownObserver;
+
+// Sibling class of DocumentShutdownObserver; implemented by Document to notify
+// subclasses of DocumentShutdownObserver of Document shutdown.
+class CORE_EXPORT DocumentShutdownNotifier
+ : public LifecycleNotifier<Document, DocumentShutdownObserver> {
+ protected:
+ DocumentShutdownNotifier();
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(DocumentShutdownNotifier);
+};
+
+} // namespace blink
+
+#endif // DocumentShutdownNotifier_h
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/dom/DocumentShutdownNotifier.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698