Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Side by Side Diff: base/id_map.h

Issue 1538743002: Switch to standard integer types in base/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DEPS roll too Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « base/hash.cc ('k') | base/id_map_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « base/hash.cc ('k') | base/id_map_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698