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

Side by Side Diff: mojo/embedder/platform_handle_vector.h

Issue 621153003: Move mojo edk into mojo/edk (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix checkdeps Created 6 years, 2 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 unified diff | Download patch
« no previous file with comments | « mojo/embedder/platform_handle_utils_win.cc ('k') | mojo/embedder/platform_shared_buffer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef MOJO_EMBEDDER_PLATFORM_HANDLE_VECTOR_H_
6 #define MOJO_EMBEDDER_PLATFORM_HANDLE_VECTOR_H_
7
8 #include <vector>
9
10 #include "base/memory/scoped_ptr.h"
11 #include "mojo/embedder/platform_handle.h"
12 #include "mojo/embedder/platform_handle_utils.h"
13 #include "mojo/system/system_impl_export.h"
14
15 namespace mojo {
16 namespace embedder {
17
18 typedef std::vector<PlatformHandle> PlatformHandleVector;
19
20 // A deleter (for use with |scoped_ptr|) which closes all handles and then
21 // |delete|s the |PlatformHandleVector|.
22 struct MOJO_SYSTEM_IMPL_EXPORT PlatformHandleVectorDeleter {
23 void operator()(PlatformHandleVector* platform_handles) const {
24 CloseAllPlatformHandles(platform_handles);
25 delete platform_handles;
26 }
27 };
28
29 typedef scoped_ptr<PlatformHandleVector, PlatformHandleVectorDeleter>
30 ScopedPlatformHandleVectorPtr;
31
32 } // namespace embedder
33 } // namespace mojo
34
35 #endif // MOJO_EMBEDDER_PLATFORM_HANDLE_VECTOR_H_
OLDNEW
« no previous file with comments | « mojo/embedder/platform_handle_utils_win.cc ('k') | mojo/embedder/platform_shared_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698