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

Unified Diff: cc/base/list_container_helper.h

Issue 1340703002: cc: Add RandomAccessListContainer, which has more restricted API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « cc/base/BUILD.gn ('k') | cc/base/random_access_list_container.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/base/list_container_helper.h
diff --git a/cc/base/list_container_helper.h b/cc/base/list_container_helper.h
index fb953a69456ba73a88893e3176670c357276dd90..31b2310d49dd160441d311fab3d048f40e9a3d76 100644
--- a/cc/base/list_container_helper.h
+++ b/cc/base/list_container_helper.h
@@ -18,6 +18,9 @@ class CC_EXPORT ListContainerHelper final {
template <typename T>
friend class ListContainer;
+ template <typename T>
+ friend class RandomAccessListContainer;
+
explicit ListContainerHelper(size_t max_size_for_derived_class);
ListContainerHelper(size_t max_size_for_derived_class,
size_t num_of_elements_to_reserve_for);
« no previous file with comments | « cc/base/BUILD.gn ('k') | cc/base/random_access_list_container.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698