DescriptionIntroducing SavePackageId and SaveItemId as distinct IdType<...>-based types.
This CL:
- Introduces content::IdType<...> template and unit tests.
- Uses content::IdType<...> to introduce SavePackageId and SaveItemId.
For now id_type.h is in content/common directory - if it proves useful
for other things, then we can move it around (see also [1], [2] and [3]).
[1] abandoned CL - crrev.com/1496103002:
Reusing base::IdType<...> to implement SurfaceId.
[2] abandoned CL - crrev.com/1492413002:
Adding a compile-time safe base::IdType<...> into //base.
[3] Id type discussion at chromium.org / site-isolation-dev list:
https://groups.google.com/a/chromium.org/d/topic/site-isolation-dev/4YWsj6keR6s/discussion
BUG=565545
Committed: https://crrev.com/1764f5c41e21cf607ffc4d644e077c096a7e78b9
Cr-Commit-Position: refs/heads/master@{#368502}
Patch Set 1 #
Total comments: 6
Patch Set 2 : Addressed CR feedback from Randy. #Patch Set 3 : Rebasing... #
Total comments: 12
Patch Set 4 : Moved id_type.h to content/common. #Patch Set 5 : Addressed CR feedback from Nick. #Patch Set 6 : Self-review. #
Total comments: 4
Patch Set 7 : Introduced IdTypeU32 and IdTypeU64 + tweaked the comments. #
Total comments: 11
Patch Set 8 : It actually builds this time around... :-/ #Patch Set 9 : Addressed CR feedback from Daniel. #Messages
Total messages: 23 (7 generated)
|