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 "mojo/public/cpp/system/message_pipe.h" | 16 #include "third_party/mojo/src/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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 MOJO_SYSTEM_IMPL_EXPORT void ShutdownIPCSupportAndWaitForNoChannels(); | 102 MOJO_SYSTEM_IMPL_EXPORT void ShutdownIPCSupportAndWaitForNoChannels(); |
103 | 103 |
104 // Creates a message pipe from a platform handle. Safe to call from any thread. | 104 // Creates a message pipe from a platform handle. Safe to call from any thread. |
105 MOJO_SYSTEM_IMPL_EXPORT ScopedMessagePipeHandle | 105 MOJO_SYSTEM_IMPL_EXPORT ScopedMessagePipeHandle |
106 CreateMessagePipe(ScopedPlatformHandle platform_handle); | 106 CreateMessagePipe(ScopedPlatformHandle platform_handle); |
107 | 107 |
108 } // namespace edk | 108 } // namespace edk |
109 } // namespace mojo | 109 } // namespace mojo |
110 | 110 |
111 #endif // MOJO_EDK_EMBEDDER_EMBEDDER_H_ | 111 #endif // MOJO_EDK_EMBEDDER_EMBEDDER_H_ |
OLD | NEW |