OLD | NEW |
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_EMBEDDER_PLATFORM_CHANNEL_PAIR_H_ |
6 #define MOJO_SYSTEM_PLATFORM_CHANNEL_PAIR_H_ | 6 #define MOJO_SYSTEM_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 "mojo/system/scoped_platform_handle.h" | 11 #include "mojo/system/embedder/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 embedder { | 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 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 embedder | 70 } // namespace embedder |
71 } // namespace mojo | 71 } // namespace mojo |
72 | 72 |
73 #endif // MOJO_SYSTEM_PLATFORM_CHANNEL_PAIR_H_ | 73 #endif // MOJO_SYSTEM_EMBEDDER_PLATFORM_CHANNEL_PAIR_H_ |
OLD | NEW |