| 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 "modules/geolocation/GeolocationWatchers.h" | 5 #include "modules/geolocation/GeolocationWatchers.h" |
| 6 | 6 |
| 7 #include "modules/geolocation/GeoNotifier.h" | 7 #include "modules/geolocation/GeoNotifier.h" |
| 8 #include "wtf/Assertions.h" | 8 #include "platform/wtf/Assertions.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| 11 | 11 |
| 12 DEFINE_TRACE(GeolocationWatchers) { | 12 DEFINE_TRACE(GeolocationWatchers) { |
| 13 visitor->Trace(id_to_notifier_map_); | 13 visitor->Trace(id_to_notifier_map_); |
| 14 visitor->Trace(notifier_to_id_map_); | 14 visitor->Trace(notifier_to_id_map_); |
| 15 } | 15 } |
| 16 | 16 |
| 17 bool GeolocationWatchers::Add(int id, GeoNotifier* notifier) { | 17 bool GeolocationWatchers::Add(int id, GeoNotifier* notifier) { |
| 18 DCHECK_GT(id, 0); | 18 DCHECK_GT(id, 0); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 bool GeolocationWatchers::IsEmpty() const { | 59 bool GeolocationWatchers::IsEmpty() const { |
| 60 return id_to_notifier_map_.IsEmpty(); | 60 return id_to_notifier_map_.IsEmpty(); |
| 61 } | 61 } |
| 62 | 62 |
| 63 void GeolocationWatchers::GetNotifiersVector( | 63 void GeolocationWatchers::GetNotifiersVector( |
| 64 HeapVector<Member<GeoNotifier>>& copy) const { | 64 HeapVector<Member<GeoNotifier>>& copy) const { |
| 65 CopyValuesToVector(id_to_notifier_map_, copy); | 65 CopyValuesToVector(id_to_notifier_map_, copy); |
| 66 } | 66 } |
| 67 | 67 |
| 68 } // namespace blink | 68 } // namespace blink |
| OLD | NEW |