| OLD | NEW |
| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 void notifyObserversInternal(const AtomicString& id); | 52 void notifyObserversInternal(const AtomicString& id); |
| 53 | 53 |
| 54 typedef HeapHashSet<Member<IdTargetObserver>> ObserverSet; | 54 typedef HeapHashSet<Member<IdTargetObserver>> ObserverSet; |
| 55 typedef HeapHashMap<StringImpl*, Member<ObserverSet>> IdToObserverSetMap; | 55 typedef HeapHashMap<StringImpl*, Member<ObserverSet>> IdToObserverSetMap; |
| 56 IdToObserverSetMap m_registry; | 56 IdToObserverSetMap m_registry; |
| 57 Member<ObserverSet> m_notifyingObserversInSet; | 57 Member<ObserverSet> m_notifyingObserversInSet; |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 inline void IdTargetObserverRegistry::notifyObservers(const AtomicString& id) | 60 inline void IdTargetObserverRegistry::notifyObservers(const AtomicString& id) |
| 61 { | 61 { |
| 62 ASSERT(!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 |
| OLD | NEW |