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

Unified Diff: ui/base/sequential_id_generator.h

Issue 23654045: ui: Fix removing a number from the SequentialIDGenerator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/base/sequential_id_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/sequential_id_generator.h
diff --git a/ui/base/sequential_id_generator.h b/ui/base/sequential_id_generator.h
index b5651d7f5af90545f315d4456ad09728a4fb28cf..0adc8bf0c665f8b918f67e94e3c0818f83a19a08 100644
--- a/ui/base/sequential_id_generator.h
+++ b/ui/base/sequential_id_generator.h
@@ -42,7 +42,9 @@ class UI_EXPORT SequentialIDGenerator {
private:
typedef base::hash_map<uint32, uint32> IDMap;
- uint32 GetNextAvailableSlot();
+ uint32 GetNextAvailableID();
+
+ void UpdateNextAvailableIDAfterRelease(uint32 id);
IDMap number_to_id_;
IDMap id_to_number_;
« no previous file with comments | « no previous file | ui/base/sequential_id_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698