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

Side by Side Diff: mojo/system/platform_channel_pair.h

Issue 137063010: Mojo: Move platform handle/channel stuff in system to embedder namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « mojo/system/multiprocess_message_pipe_unittest.cc ('k') | mojo/system/platform_channel_pair.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_SYSTEM_PLATFORM_CHANNEL_PAIR_H_ 5 #ifndef MOJO_SYSTEM_PLATFORM_CHANNEL_PAIR_H_
6 #define MOJO_SYSTEM_PLATFORM_CHANNEL_PAIR_H_ 6 #define MOJO_SYSTEM_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 "mojo/system/scoped_platform_handle.h" 11 #include "mojo/system/scoped_platform_handle.h"
12 #include "mojo/system/system_impl_export.h" 12 #include "mojo/system/system_impl_export.h"
13 13
14 class CommandLine; 14 class CommandLine;
15 15
16 namespace mojo { 16 namespace mojo {
17 namespace system { 17 namespace embedder {
18 18
19 // This is used to create a pair of |PlatformHandle|s that are connected by a 19 // This is used to create a pair of |PlatformHandle|s that are connected by a
20 // suitable (platform-specific) bidirectional "pipe" (e.g., socket on POSIX, 20 // suitable (platform-specific) bidirectional "pipe" (e.g., socket on POSIX,
21 // named pipe on Windows). The resulting handles can then be used in the same 21 // named pipe on Windows). The resulting handles can then be used in the same
22 // process (e.g., in tests) or between processes. (The "server" handle is the 22 // process (e.g., in tests) or between processes. (The "server" handle is the
23 // one that will be used in the process that created the pair, whereas the 23 // one that will be used in the process that created the pair, whereas the
24 // "client" handle is the one that will be used in a different process.) 24 // "client" handle is the one that will be used in a different process.)
25 // 25 //
26 // This class provides facilities for passing the client handle to a child 26 // This class provides facilities for passing the client handle to a child
27 // process. The parent should call |PrepareToPassClientHandlelToChildProcess()| 27 // process. The parent should call |PrepareToPassClientHandlelToChildProcess()|
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // any cleanup necessary. 60 // any cleanup necessary.
61 void ChildProcessLaunched(); 61 void ChildProcessLaunched();
62 62
63 private: 63 private:
64 ScopedPlatformHandle server_handle_; 64 ScopedPlatformHandle server_handle_;
65 ScopedPlatformHandle client_handle_; 65 ScopedPlatformHandle client_handle_;
66 66
67 DISALLOW_COPY_AND_ASSIGN(PlatformChannelPair); 67 DISALLOW_COPY_AND_ASSIGN(PlatformChannelPair);
68 }; 68 };
69 69
70 } // namespace system 70 } // namespace embedder
71 } // namespace mojo 71 } // namespace mojo
72 72
73 #endif // MOJO_SYSTEM_PLATFORM_CHANNEL_PAIR_H_ 73 #endif // MOJO_SYSTEM_PLATFORM_CHANNEL_PAIR_H_
OLDNEW
« no previous file with comments | « mojo/system/multiprocess_message_pipe_unittest.cc ('k') | mojo/system/platform_channel_pair.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698