OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_NAMED_PLATFORM_CHANNEL_PAIR_H_ | 5 #ifndef MOJO_EDK_EMBEDDER_NAMED_PLATFORM_CHANNEL_PAIR_H_ |
6 #define MOJO_EDK_EMBEDDER_NAMED_PLATFORM_CHANNEL_PAIR_H_ | 6 #define MOJO_EDK_EMBEDDER_NAMED_PLATFORM_CHANNEL_PAIR_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
| 13 #include "mojo/edk/embedder/named_platform_handle.h" |
13 #include "mojo/edk/embedder/scoped_platform_handle.h" | 14 #include "mojo/edk/embedder/scoped_platform_handle.h" |
14 #include "mojo/edk/system/system_impl_export.h" | 15 #include "mojo/edk/system/system_impl_export.h" |
15 | 16 |
16 namespace base { | 17 namespace base { |
17 class CommandLine; | 18 class CommandLine; |
18 } | 19 } |
19 | 20 |
20 namespace mojo { | 21 namespace mojo { |
21 namespace edk { | 22 namespace edk { |
22 | 23 |
(...skipping 19 matching lines...) Expand all Loading... |
42 const base::CommandLine& command_line); | 43 const base::CommandLine& command_line); |
43 | 44 |
44 // Prepares to pass the client channel to a new child process, to be launched | 45 // Prepares to pass the client channel to a new child process, to be launched |
45 // using |LaunchProcess()| (from base/launch.h). Modifies |*command_line| and | 46 // using |LaunchProcess()| (from base/launch.h). Modifies |*command_line| and |
46 // |*handle_passing_info| as needed. | 47 // |*handle_passing_info| as needed. |
47 // Note: For Windows, this method only works on Vista and later. | 48 // Note: For Windows, this method only works on Vista and later. |
48 void PrepareToPassClientHandleToChildProcess( | 49 void PrepareToPassClientHandleToChildProcess( |
49 base::CommandLine* command_line) const; | 50 base::CommandLine* command_line) const; |
50 | 51 |
51 private: | 52 private: |
| 53 NamedPlatformHandle pipe_handle_; |
52 ScopedPlatformHandle server_handle_; | 54 ScopedPlatformHandle server_handle_; |
53 | 55 |
54 #if defined(OS_WIN) | |
55 base::string16 pipe_name_; | |
56 #endif | |
57 | |
58 DISALLOW_COPY_AND_ASSIGN(NamedPlatformChannelPair); | 56 DISALLOW_COPY_AND_ASSIGN(NamedPlatformChannelPair); |
59 }; | 57 }; |
60 | 58 |
61 } // namespace edk | 59 } // namespace edk |
62 } // namespace mojo | 60 } // namespace mojo |
63 | 61 |
64 #endif // MOJO_EDK_EMBEDDER_NAMED_PLATFORM_CHANNEL_PAIR_H_ | 62 #endif // MOJO_EDK_EMBEDDER_NAMED_PLATFORM_CHANNEL_PAIR_H_ |
OLD | NEW |