OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 BASE_ID_MAP_H_ | 5 #ifndef BASE_ID_MAP_H_ |
6 #define BASE_ID_MAP_H_ | 6 #define BASE_ID_MAP_H_ |
7 | 7 |
| 8 #include <stddef.h> |
8 #include <stdint.h> | 9 #include <stdint.h> |
9 #include <set> | 10 #include <set> |
10 | 11 |
11 #include "base/containers/hash_tables.h" | 12 #include "base/containers/hash_tables.h" |
12 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/macros.h" |
13 #include "base/sequence_checker.h" | 15 #include "base/sequence_checker.h" |
14 | 16 |
15 // Ownership semantics - own pointer means the pointer is deleted in Remove() | 17 // Ownership semantics - own pointer means the pointer is deleted in Remove() |
16 // & during destruction | 18 // & during destruction |
17 enum IDMapOwnershipSemantics { | 19 enum IDMapOwnershipSemantics { |
18 IDMapExternalPointer, | 20 IDMapExternalPointer, |
19 IDMapOwnPointer | 21 IDMapOwnPointer |
20 }; | 22 }; |
21 | 23 |
22 // This object maintains a list of IDs that can be quickly converted to | 24 // This object maintains a list of IDs that can be quickly converted to |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 | 276 |
275 // See description above setter. | 277 // See description above setter. |
276 bool check_on_null_data_; | 278 bool check_on_null_data_; |
277 | 279 |
278 base::SequenceChecker sequence_checker_; | 280 base::SequenceChecker sequence_checker_; |
279 | 281 |
280 DISALLOW_COPY_AND_ASSIGN(IDMap); | 282 DISALLOW_COPY_AND_ASSIGN(IDMap); |
281 }; | 283 }; |
282 | 284 |
283 #endif // BASE_ID_MAP_H_ | 285 #endif // BASE_ID_MAP_H_ |
OLD | NEW |