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 <set> | 8 #include <set> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/hash_tables.h" | 11 #include "base/containers/hash_tables.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/threading/non_thread_safe.h" | 13 #include "base/threading/non_thread_safe.h" |
14 | 14 |
15 // Ownership semantics - own pointer means the pointer is deleted in Remove() | 15 // Ownership semantics - own pointer means the pointer is deleted in Remove() |
16 // & during destruction | 16 // & during destruction |
17 enum IDMapOwnershipSemantics { | 17 enum IDMapOwnershipSemantics { |
18 IDMapExternalPointer, | 18 IDMapExternalPointer, |
19 IDMapOwnPointer | 19 IDMapOwnPointer |
20 }; | 20 }; |
21 | 21 |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 | 248 |
249 HashTable data_; | 249 HashTable data_; |
250 | 250 |
251 // See description above setter. | 251 // See description above setter. |
252 bool check_on_null_data_; | 252 bool check_on_null_data_; |
253 | 253 |
254 DISALLOW_COPY_AND_ASSIGN(IDMap); | 254 DISALLOW_COPY_AND_ASSIGN(IDMap); |
255 }; | 255 }; |
256 | 256 |
257 #endif // BASE_ID_MAP_H_ | 257 #endif // BASE_ID_MAP_H_ |
OLD | NEW |