| 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 THIRD_PARTY_MOJO_SRC_MOJO_EDK_EMBEDDER_PLATFORM_CHANNEL_PAIR_H_ | 5 #ifndef MOJO_EDK_EMBEDDER_PLATFORM_CHANNEL_PAIR_H_ |
| 6 #define THIRD_PARTY_MOJO_SRC_MOJO_EDK_EMBEDDER_PLATFORM_CHANNEL_PAIR_H_ | 6 #define MOJO_EDK_EMBEDDER_PLATFORM_CHANNEL_PAIR_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/process/launch.h" | 9 #include "base/process/launch.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| 11 #include "mojo/edk/embedder/scoped_platform_handle.h" |
| 12 #include "mojo/edk/system/system_impl_export.h" |
| 11 #include "mojo/public/cpp/system/macros.h" | 13 #include "mojo/public/cpp/system/macros.h" |
| 12 #include "third_party/mojo/src/mojo/edk/embedder/scoped_platform_handle.h" | |
| 13 #include "third_party/mojo/src/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 edk { |
| 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 using HandlePassingInformation = base::HandlesToInheritVector; | 25 using HandlePassingInformation = base::HandlesToInheritVector; |
| 26 #elif defined(OS_POSIX) | 26 #elif defined(OS_POSIX) |
| 27 using HandlePassingInformation = base::FileHandleMappingVector; | 27 using HandlePassingInformation = base::FileHandleMappingVector; |
| 28 #else | 28 #else |
| 29 #error "Unsupported." | 29 #error "Unsupported." |
| 30 #endif | 30 #endif |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 | 81 |
| 82 private: | 82 private: |
| 83 static const char kMojoPlatformChannelHandleSwitch[]; | 83 static const char kMojoPlatformChannelHandleSwitch[]; |
| 84 | 84 |
| 85 ScopedPlatformHandle server_handle_; | 85 ScopedPlatformHandle server_handle_; |
| 86 ScopedPlatformHandle client_handle_; | 86 ScopedPlatformHandle client_handle_; |
| 87 | 87 |
| 88 MOJO_DISALLOW_COPY_AND_ASSIGN(PlatformChannelPair); | 88 MOJO_DISALLOW_COPY_AND_ASSIGN(PlatformChannelPair); |
| 89 }; | 89 }; |
| 90 | 90 |
| 91 } // namespace embedder | 91 } // namespace edk |
| 92 } // namespace mojo | 92 } // namespace mojo |
| 93 | 93 |
| 94 #endif // THIRD_PARTY_MOJO_SRC_MOJO_EDK_EMBEDDER_PLATFORM_CHANNEL_PAIR_H_ | 94 #endif // MOJO_EDK_EMBEDDER_PLATFORM_CHANNEL_PAIR_H_ |
| OLD | NEW |