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

Side by Side Diff: webrtc/system_wrappers/include/scoped_vector.h

Issue 1413333002: system_wrappers: rename interface -> include (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased again! 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 /* 1 /*
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 // Borrowed from Chromium's src/base/memory/scoped_vector.h. 11 // Borrowed from Chromium's src/base/memory/scoped_vector.h.
12 12
13 #ifndef WEBRTC_SYSTEM_WRAPPERS_INTERFACE_SCOPED_VECTOR_H_ 13 #ifndef WEBRTC_SYSTEM_WRAPPERS_INTERFACE_SCOPED_VECTOR_H_
14 #define WEBRTC_SYSTEM_WRAPPERS_INTERFACE_SCOPED_VECTOR_H_ 14 #define WEBRTC_SYSTEM_WRAPPERS_INTERFACE_SCOPED_VECTOR_H_
15 15
16 #include <vector> 16 #include <vector>
17 17
18 #include "webrtc/base/checks.h" 18 #include "webrtc/base/checks.h"
19 #include "webrtc/system_wrappers/interface/stl_util.h" 19 #include "webrtc/system_wrappers/include/stl_util.h"
20 20
21 namespace webrtc { 21 namespace webrtc {
22 22
23 // ScopedVector wraps a vector deleting the elements from its 23 // ScopedVector wraps a vector deleting the elements from its
24 // destructor. 24 // destructor.
25 template <class T> 25 template <class T>
26 class ScopedVector { 26 class ScopedVector {
27 public: 27 public:
28 typedef typename std::vector<T*>::allocator_type allocator_type; 28 typedef typename std::vector<T*>::allocator_type allocator_type;
29 typedef typename std::vector<T*>::size_type size_type; 29 typedef typename std::vector<T*>::size_type size_type;
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 return v_.erase(first, last); 148 return v_.erase(first, last);
149 } 149 }
150 150
151 private: 151 private:
152 std::vector<T*> v_; 152 std::vector<T*> v_;
153 }; 153 };
154 154
155 } // namespace webrtc 155 } // namespace webrtc
156 156
157 #endif // WEBRTC_SYSTEM_WRAPPERS_INTERFACE_SCOPED_VECTOR_H_ 157 #endif // WEBRTC_SYSTEM_WRAPPERS_INTERFACE_SCOPED_VECTOR_H_
OLDNEW
« no previous file with comments | « webrtc/system_wrappers/include/rw_lock_wrapper.h ('k') | webrtc/system_wrappers/include/sleep.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698