| 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_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/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/process/launch.h" | 10 #include "base/process/launch.h" |
| 10 #include "build/build_config.h" | 11 #include "build/build_config.h" |
| 11 #include "mojo/edk/embedder/scoped_platform_handle.h" | 12 #include "mojo/edk/embedder/scoped_platform_handle.h" |
| 12 #include "mojo/edk/system/system_impl_export.h" | 13 #include "mojo/edk/system/system_impl_export.h" |
| 13 #include "mojo/public/cpp/system/macros.h" | 14 #include "mojo/public/cpp/system/macros.h" |
| 14 | 15 |
| 15 namespace base { | 16 namespace base { |
| 16 class CommandLine; | 17 class CommandLine; |
| 17 } | 18 } |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 HandlePassingInformation* handle_passing_info) const; | 89 HandlePassingInformation* handle_passing_info) const; |
| 89 | 90 |
| 90 // To be called once the child process has been successfully launched, to do | 91 // To be called once the child process has been successfully launched, to do |
| 91 // any cleanup necessary. | 92 // any cleanup necessary. |
| 92 void ChildProcessLaunched(); | 93 void ChildProcessLaunched(); |
| 93 | 94 |
| 94 private: | 95 private: |
| 95 ScopedPlatformHandle server_handle_; | 96 ScopedPlatformHandle server_handle_; |
| 96 ScopedPlatformHandle client_handle_; | 97 ScopedPlatformHandle client_handle_; |
| 97 | 98 |
| 98 MOJO_DISALLOW_COPY_AND_ASSIGN(PlatformChannelPair); | 99 DISALLOW_COPY_AND_ASSIGN(PlatformChannelPair); |
| 99 }; | 100 }; |
| 100 | 101 |
| 101 } // namespace edk | 102 } // namespace edk |
| 102 } // namespace mojo | 103 } // namespace mojo |
| 103 | 104 |
| 104 #endif // MOJO_EDK_EMBEDDER_PLATFORM_CHANNEL_PAIR_H_ | 105 #endif // MOJO_EDK_EMBEDDER_PLATFORM_CHANNEL_PAIR_H_ |
| OLD | NEW |