OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "config.h" | 5 #include "config.h" |
6 #include "modules/geolocation/GeolocationWatchers.h" | 6 #include "modules/geolocation/GeolocationWatchers.h" |
7 | 7 |
8 #include "modules/geolocation/GeoNotifier.h" | 8 #include "modules/geolocation/GeoNotifier.h" |
9 | 9 |
10 namespace WebCore { | 10 namespace blink { |
11 | 11 |
12 void GeolocationWatchers::trace(Visitor* visitor) | 12 void GeolocationWatchers::trace(Visitor* visitor) |
13 { | 13 { |
14 visitor->trace(m_idToNotifierMap); | 14 visitor->trace(m_idToNotifierMap); |
15 visitor->trace(m_notifierToIdMap); | 15 visitor->trace(m_notifierToIdMap); |
16 } | 16 } |
17 | 17 |
18 bool GeolocationWatchers::add(int id, GeoNotifier* notifier) | 18 bool GeolocationWatchers::add(int id, GeoNotifier* notifier) |
19 { | 19 { |
20 ASSERT(id > 0); | 20 ASSERT(id > 0); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 bool GeolocationWatchers::isEmpty() const | 66 bool GeolocationWatchers::isEmpty() const |
67 { | 67 { |
68 return m_idToNotifierMap.isEmpty(); | 68 return m_idToNotifierMap.isEmpty(); |
69 } | 69 } |
70 | 70 |
71 void GeolocationWatchers::getNotifiersVector(HeapVector<Member<GeoNotifier> >& c
opy) const | 71 void GeolocationWatchers::getNotifiersVector(HeapVector<Member<GeoNotifier> >& c
opy) const |
72 { | 72 { |
73 copyValuesToVector(m_idToNotifierMap, copy); | 73 copyValuesToVector(m_idToNotifierMap, copy); |
74 } | 74 } |
75 | 75 |
76 } // namespace WebCore | 76 } // namespace blink |
OLD | NEW |