| 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 #pragma once | |
| 8 | 7 |
| 9 #include <set> | 8 #include <set> |
| 10 | 9 |
| 11 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 12 #include "base/hash_tables.h" | 11 #include "base/hash_tables.h" |
| 13 #include "base/logging.h" | 12 #include "base/logging.h" |
| 14 #include "base/threading/non_thread_safe.h" | 13 #include "base/threading/non_thread_safe.h" |
| 15 | 14 |
| 16 // Ownership semantics - own pointer means the pointer is deleted in Remove() | 15 // Ownership semantics - own pointer means the pointer is deleted in Remove() |
| 17 // & during destruction | 16 // & during destruction |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 | 209 |
| 211 HashTable data_; | 210 HashTable data_; |
| 212 | 211 |
| 213 // See description above setter. | 212 // See description above setter. |
| 214 bool check_on_null_data_; | 213 bool check_on_null_data_; |
| 215 | 214 |
| 216 DISALLOW_COPY_AND_ASSIGN(IDMap); | 215 DISALLOW_COPY_AND_ASSIGN(IDMap); |
| 217 }; | 216 }; |
| 218 | 217 |
| 219 #endif // BASE_ID_MAP_H_ | 218 #endif // BASE_ID_MAP_H_ |
| OLD | NEW |