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

Side by Side Diff: mojo/edk/embedder/platform_channel_pair.h

Issue 1154903003: "typedef Foo Bar" -> "using Bar = Foo" in //mojo/edk/.... (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 7 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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 MOJO_EDK_EMBEDDER_PLATFORM_CHANNEL_PAIR_H_ 5 #ifndef MOJO_EDK_EMBEDDER_PLATFORM_CHANNEL_PAIR_H_
6 #define MOJO_EDK_EMBEDDER_PLATFORM_CHANNEL_PAIR_H_ 6 #define MOJO_EDK_EMBEDDER_PLATFORM_CHANNEL_PAIR_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/process/launch.h" 10 #include "base/process/launch.h"
11 #include "build/build_config.h" 11 #include "build/build_config.h"
12 #include "mojo/edk/embedder/scoped_platform_handle.h" 12 #include "mojo/edk/embedder/scoped_platform_handle.h"
13 #include "mojo/edk/system/system_impl_export.h" 13 #include "mojo/edk/system/system_impl_export.h"
14 14
15 namespace base { 15 namespace base {
16 class CommandLine; 16 class CommandLine;
17 } 17 }
18 18
19 namespace mojo { 19 namespace mojo {
20 namespace embedder { 20 namespace embedder {
21 21
22 // It would be nice to refactor base/process/launch.h to have a more platform- 22 // It would be nice to refactor base/process/launch.h to have a more platform-
23 // independent way of representing handles that are passed to child processes. 23 // independent way of representing handles that are passed to child processes.
24 #if defined(OS_WIN) 24 #if defined(OS_WIN)
25 typedef base::HandlesToInheritVector HandlePassingInformation; 25 using HandlePassingInformation = base::HandlesToInheritVector;
26 #elif defined(OS_POSIX) 26 #elif defined(OS_POSIX)
27 typedef base::FileHandleMappingVector HandlePassingInformation; 27 using HandlePassingInformation = base::FileHandleMappingVector;
28 #else 28 #else
29 #error "Unsupported." 29 #error "Unsupported."
30 #endif 30 #endif
31 31
32 // This is used to create a pair of |PlatformHandle|s that are connected by a 32 // This is used to create a pair of |PlatformHandle|s that are connected by a
33 // suitable (platform-specific) bidirectional "pipe" (e.g., socket on POSIX, 33 // suitable (platform-specific) bidirectional "pipe" (e.g., socket on POSIX,
34 // named pipe on Windows). The resulting handles can then be used in the same 34 // named pipe on Windows). The resulting handles can then be used in the same
35 // process (e.g., in tests) or between processes. (The "server" handle is the 35 // process (e.g., in tests) or between processes. (The "server" handle is the
36 // one that will be used in the process that created the pair, whereas the 36 // one that will be used in the process that created the pair, whereas the
37 // "client" handle is the one that will be used in a different process.) 37 // "client" handle is the one that will be used in a different process.)
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 ScopedPlatformHandle server_handle_; 85 ScopedPlatformHandle server_handle_;
86 ScopedPlatformHandle client_handle_; 86 ScopedPlatformHandle client_handle_;
87 87
88 DISALLOW_COPY_AND_ASSIGN(PlatformChannelPair); 88 DISALLOW_COPY_AND_ASSIGN(PlatformChannelPair);
89 }; 89 };
90 90
91 } // namespace embedder 91 } // namespace embedder
92 } // namespace mojo 92 } // namespace mojo
93 93
94 #endif // MOJO_EDK_EMBEDDER_PLATFORM_CHANNEL_PAIR_H_ 94 #endif // MOJO_EDK_EMBEDDER_PLATFORM_CHANNEL_PAIR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698