| 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_EMBEDDER_H_ | 5 #ifndef MOJO_EDK_EMBEDDER_EMBEDDER_H_ |
| 6 #define MOJO_EDK_EMBEDDER_EMBEDDER_H_ | 6 #define MOJO_EDK_EMBEDDER_EMBEDDER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 // called on the I/O thread (given to |InitIPCSupport()|). This completes | 108 // called on the I/O thread (given to |InitIPCSupport()|). This completes |
| 109 // synchronously and does not result in a call to the process delegate's | 109 // synchronously and does not result in a call to the process delegate's |
| 110 // |OnShutdownComplete()|. | 110 // |OnShutdownComplete()|. |
| 111 MOJO_SYSTEM_IMPL_EXPORT void ShutdownIPCSupportOnIOThread(); | 111 MOJO_SYSTEM_IMPL_EXPORT void ShutdownIPCSupportOnIOThread(); |
| 112 | 112 |
| 113 // Like |ShutdownIPCSupportOnIOThread()|, but may be called from any thread, | 113 // Like |ShutdownIPCSupportOnIOThread()|, but may be called from any thread, |
| 114 // signalling shutdown completion via the process delegate's | 114 // signalling shutdown completion via the process delegate's |
| 115 // |OnShutdownComplete()|. | 115 // |OnShutdownComplete()|. |
| 116 MOJO_SYSTEM_IMPL_EXPORT void ShutdownIPCSupport(); | 116 MOJO_SYSTEM_IMPL_EXPORT void ShutdownIPCSupport(); |
| 117 | 117 |
| 118 // Like above, but doesn't call |OnShutdownComplete| until all channels are | |
| 119 // gone. | |
| 120 // TODO(jam): this should be the default behavior. | |
| 121 MOJO_SYSTEM_IMPL_EXPORT void ShutdownIPCSupportAndWaitForNoChannels(); | |
| 122 | |
| 123 // Creates a message pipe from a platform handle. Safe to call from any thread. | 118 // Creates a message pipe from a platform handle. Safe to call from any thread. |
| 124 MOJO_SYSTEM_IMPL_EXPORT ScopedMessagePipeHandle | 119 MOJO_SYSTEM_IMPL_EXPORT ScopedMessagePipeHandle |
| 125 CreateMessagePipe(ScopedPlatformHandle platform_handle); | 120 CreateMessagePipe(ScopedPlatformHandle platform_handle); |
| 126 | 121 |
| 127 } // namespace edk | 122 } // namespace edk |
| 128 } // namespace mojo | 123 } // namespace mojo |
| 129 | 124 |
| 130 #endif // MOJO_EDK_EMBEDDER_EMBEDDER_H_ | 125 #endif // MOJO_EDK_EMBEDDER_EMBEDDER_H_ |
| OLD | NEW |