From 1764f5c41e21cf607ffc4d644e077c096a7e78b9 Mon Sep 17 00:00:00 2001 From: lukasza Date: Fri, 8 Jan 2016 17:42:54 -0800 Subject: Introducing 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 Review URL: https://codereview.chromium.org/1529363006 Cr-Commit-Position: refs/heads/master@{#368502} --- content/content_common.gypi | 1 + 1 file changed, 1 insertion(+) (limited to 'content/content_common.gypi') diff --git a/content/content_common.gypi b/content/content_common.gypi index 5567be5..929e235 100644 --- a/content/content_common.gypi +++ b/content/content_common.gypi @@ -369,6 +369,7 @@ 'common/host_discardable_shared_memory_manager.h', 'common/host_shared_bitmap_manager.cc', 'common/host_shared_bitmap_manager.h', + 'common/id_type.h', 'common/in_process_child_thread_params.cc', 'common/in_process_child_thread_params.h', 'common/indexed_db/indexed_db_constants.h', -- cgit v1.1