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" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/task_runner.h" | 13 #include "base/task_runner.h" |
14 #include "mojo/edk/embedder/scoped_platform_handle.h" | 14 #include "mojo/edk/embedder/scoped_platform_handle.h" |
15 #include "mojo/edk/system/system_impl_export.h" | 15 #include "mojo/edk/system/system_impl_export.h" |
16 #include "third_party/mojo/src/mojo/public/cpp/system/message_pipe.h" | 16 #include "mojo/public/cpp/system/message_pipe.h" |
17 | 17 |
18 namespace mojo { | 18 namespace mojo { |
19 namespace edk { | 19 namespace edk { |
20 | 20 |
21 class ProcessDelegate; | 21 class ProcessDelegate; |
22 | 22 |
23 // Basic configuration/initialization ------------------------------------------ | 23 // Basic configuration/initialization ------------------------------------------ |
24 | 24 |
25 // |Init()| sets up the basic Mojo system environment, making the |Mojo...()| | 25 // |Init()| sets up the basic Mojo system environment, making the |Mojo...()| |
26 // functions available and functional. This is never shut down (except in tests | 26 // functions available and functional. This is never shut down (except in tests |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 MOJO_SYSTEM_IMPL_EXPORT void ShutdownIPCSupportAndWaitForNoChannels(); | 100 MOJO_SYSTEM_IMPL_EXPORT void ShutdownIPCSupportAndWaitForNoChannels(); |
101 | 101 |
102 // Creates a message pipe from a platform handle. Safe to call from any thread. | 102 // Creates a message pipe from a platform handle. Safe to call from any thread. |
103 MOJO_SYSTEM_IMPL_EXPORT ScopedMessagePipeHandle | 103 MOJO_SYSTEM_IMPL_EXPORT ScopedMessagePipeHandle |
104 CreateMessagePipe(ScopedPlatformHandle platform_handle); | 104 CreateMessagePipe(ScopedPlatformHandle platform_handle); |
105 | 105 |
106 } // namespace edk | 106 } // namespace edk |
107 } // namespace mojo | 107 } // namespace mojo |
108 | 108 |
109 #endif // MOJO_EDK_EMBEDDER_EMBEDDER_H_ | 109 #endif // MOJO_EDK_EMBEDDER_EMBEDDER_H_ |
OLD | NEW |