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 #ifndef COMPONENTS_COPRESENCE_TIMED_MAP_H_ | 5 #ifndef COMPONENTS_COPRESENCE_TIMED_MAP_H_ |
6 #define COMPONENTS_COPRESENCE_TIMED_MAP_H_ | 6 #define COMPONENTS_COPRESENCE_TIMED_MAP_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include <map> | 10 #include <map> |
9 #include <queue> | 11 #include <queue> |
10 #include <utility> | 12 #include <utility> |
11 #include <vector> | 13 #include <vector> |
12 | 14 |
13 #include "base/macros.h" | 15 #include "base/macros.h" |
14 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
15 #include "base/time/default_tick_clock.h" | 17 #include "base/time/default_tick_clock.h" |
16 #include "base/time/tick_clock.h" | 18 #include "base/time/tick_clock.h" |
17 #include "base/time/time.h" | 19 #include "base/time/time.h" |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 // Priority queue with our element keys ordered by the earliest expiring keys | 105 // Priority queue with our element keys ordered by the earliest expiring keys |
104 // first. | 106 // first. |
105 ExpiryQueue expiry_queue_; | 107 ExpiryQueue expiry_queue_; |
106 | 108 |
107 DISALLOW_COPY_AND_ASSIGN(TimedMap); | 109 DISALLOW_COPY_AND_ASSIGN(TimedMap); |
108 }; | 110 }; |
109 | 111 |
110 } // namespace copresence | 112 } // namespace copresence |
111 | 113 |
112 #endif // COMPONENTS_COPRESENCE_TIMED_MAP_H_ | 114 #endif // COMPONENTS_COPRESENCE_TIMED_MAP_H_ |
OLD | NEW |