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

Unified Diff: Source/platform/LifecycleNotifier.h

Issue 991763002: Remove unnecessary add/removeObserver lifetime notifier indirections. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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: Source/platform/LifecycleNotifier.h
diff --git a/Source/platform/LifecycleNotifier.h b/Source/platform/LifecycleNotifier.h
index 16659d52a8e130784203d3e0b9b2d3a058da9124..c256694dfba92484ce5d006beacc332a09a86d42 100644
--- a/Source/platform/LifecycleNotifier.h
+++ b/Source/platform/LifecycleNotifier.h
@@ -42,6 +42,9 @@ public:
virtual ~LifecycleNotifier();
virtual bool isContextThread() const { return true; }
+ void addObserver(Observer*);
+ void removeObserver(Observer*);
+
// notifyContextDestroyed() should be explicitly dispatched from an
// observed context to notify observers that contextDestroyed().
//
@@ -61,9 +64,6 @@ protected:
{
}
- void addObserver(Observer*);
- void removeObserver(Observer*);
-
Context* context() const { return m_context; }
enum IterationType {
« Source/core/dom/ContextLifecycleNotifier.cpp ('K') | « Source/core/page/PageLifecycleNotifier.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698