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

Side by Side Diff: cc/base/list_container_helper.h

Issue 1437413002: cc: Remove ScopedPtrVector and cc::remove_if. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: just the vector Created 5 years, 1 month 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 CC_BASE_LIST_CONTAINER_HELPER_H_ 5 #ifndef CC_BASE_LIST_CONTAINER_HELPER_H_
6 #define CC_BASE_LIST_CONTAINER_HELPER_H_ 6 #define CC_BASE_LIST_CONTAINER_HELPER_H_
7 7
8 #include "base/logging.h"
danakj 2015/11/17 01:12:16 why?
vmpstr 2015/11/17 23:26:23 That was meant to be in the .cc, moved it there. I
8 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
9 #include "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
10 11
11 namespace cc { 12 namespace cc {
12 13
13 // Helper class for ListContainer non-templated logic. All methods are private, 14 // Helper class for ListContainer non-templated logic. All methods are private,
14 // and only exposed to friend classes. 15 // and only exposed to friend classes.
15 // For usage, see comments in ListContainer (list_container.h). 16 // For usage, see comments in ListContainer (list_container.h).
16 class CC_EXPORT ListContainerHelper final { 17 class CC_EXPORT ListContainerHelper final {
17 private: 18 private:
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 void* Allocate(size_t size_of_actual_element_in_bytes); 170 void* Allocate(size_t size_of_actual_element_in_bytes);
170 171
171 scoped_ptr<CharAllocator> data_; 172 scoped_ptr<CharAllocator> data_;
172 173
173 DISALLOW_COPY_AND_ASSIGN(ListContainerHelper); 174 DISALLOW_COPY_AND_ASSIGN(ListContainerHelper);
174 }; 175 };
175 176
176 } // namespace cc 177 } // namespace cc
177 178
178 #endif // CC_BASE_LIST_CONTAINER_HELPER_H_ 179 #endif // CC_BASE_LIST_CONTAINER_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698