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

Side by Side Diff: third_party/WebKit/Source/core/dom/IdTargetObserverRegistry.h

Issue 1929493002: Remove unnecessary uses of GarbageCollectedFinalized<>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add two leftover classes needing same treatment Created 4 years, 7 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All Rights Reserved. 2 * Copyright (C) 2012 Google Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 18 matching lines...) Expand all
29 #include "platform/heap/Handle.h" 29 #include "platform/heap/Handle.h"
30 #include "wtf/Forward.h" 30 #include "wtf/Forward.h"
31 #include "wtf/HashMap.h" 31 #include "wtf/HashMap.h"
32 #include "wtf/HashSet.h" 32 #include "wtf/HashSet.h"
33 #include "wtf/text/StringHash.h" 33 #include "wtf/text/StringHash.h"
34 34
35 namespace blink { 35 namespace blink {
36 36
37 class IdTargetObserver; 37 class IdTargetObserver;
38 38
39 class IdTargetObserverRegistry final : public GarbageCollectedFinalized<IdTarget ObserverRegistry> { 39 class IdTargetObserverRegistry final : public GarbageCollected<IdTargetObserverR egistry> {
40 WTF_MAKE_NONCOPYABLE(IdTargetObserverRegistry); 40 WTF_MAKE_NONCOPYABLE(IdTargetObserverRegistry);
41 friend class IdTargetObserver; 41 friend class IdTargetObserver;
42 public: 42 public:
43 static IdTargetObserverRegistry* create(); 43 static IdTargetObserverRegistry* create();
44 DECLARE_TRACE(); 44 DECLARE_TRACE();
45 void notifyObservers(const AtomicString& id); 45 void notifyObservers(const AtomicString& id);
46 bool hasObservers(const AtomicString& id) const; 46 bool hasObservers(const AtomicString& id) const;
47 47
48 private: 48 private:
49 IdTargetObserverRegistry() : m_notifyingObserversInSet(nullptr) { } 49 IdTargetObserverRegistry() : m_notifyingObserversInSet(nullptr) { }
(...skipping 11 matching lines...) Expand all
61 { 61 {
62 DCHECK(!m_notifyingObserversInSet); 62 DCHECK(!m_notifyingObserversInSet);
63 if (id.isEmpty() || m_registry.isEmpty()) 63 if (id.isEmpty() || m_registry.isEmpty())
64 return; 64 return;
65 IdTargetObserverRegistry::notifyObserversInternal(id); 65 IdTargetObserverRegistry::notifyObserversInternal(id);
66 } 66 }
67 67
68 } // namespace blink 68 } // namespace blink
69 69
70 #endif // IdTargetObserverRegistry_h 70 #endif // IdTargetObserverRegistry_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698