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_EMBEDDER_EMBEDDER_H_ | 5 #ifndef MOJO_EDK_EMBEDDER_EMBEDDER_H_ |
6 #define MOJO_EMBEDDER_EMBEDDER_H_ | 6 #define MOJO_EDK_EMBEDDER_EMBEDDER_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/task_runner.h" | 11 #include "base/task_runner.h" |
12 #include "mojo/embedder/scoped_platform_handle.h" | 12 #include "mojo/edk/embedder/scoped_platform_handle.h" |
| 13 #include "mojo/edk/system/system_impl_export.h" |
13 #include "mojo/public/cpp/system/core.h" | 14 #include "mojo/public/cpp/system/core.h" |
14 #include "mojo/system/system_impl_export.h" | |
15 | 15 |
16 namespace mojo { | 16 namespace mojo { |
17 namespace embedder { | 17 namespace embedder { |
18 | 18 |
19 class PlatformSupport; | 19 class PlatformSupport; |
20 | 20 |
21 // Must be called first to initialize the (global, singleton) system. | 21 // Must be called first to initialize the (global, singleton) system. |
22 MOJO_SYSTEM_IMPL_EXPORT void Init(scoped_ptr<PlatformSupport> platform_support); | 22 MOJO_SYSTEM_IMPL_EXPORT void Init(scoped_ptr<PlatformSupport> platform_support); |
23 | 23 |
24 // A "channel" is a connection on top of an OS "pipe", on top of which Mojo | 24 // A "channel" is a connection on top of an OS "pipe", on top of which Mojo |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 // Retrieves the |PlatformHandle| that was wrapped into a |MojoHandle| (using | 115 // Retrieves the |PlatformHandle| that was wrapped into a |MojoHandle| (using |
116 // |CreatePlatformHandleWrapper()| above). Note that the |MojoHandle| must still | 116 // |CreatePlatformHandleWrapper()| above). Note that the |MojoHandle| must still |
117 // be closed separately. | 117 // be closed separately. |
118 MOJO_SYSTEM_IMPL_EXPORT MojoResult | 118 MOJO_SYSTEM_IMPL_EXPORT MojoResult |
119 PassWrappedPlatformHandle(MojoHandle platform_handle_wrapper_handle, | 119 PassWrappedPlatformHandle(MojoHandle platform_handle_wrapper_handle, |
120 ScopedPlatformHandle* platform_handle); | 120 ScopedPlatformHandle* platform_handle); |
121 | 121 |
122 } // namespace embedder | 122 } // namespace embedder |
123 } // namespace mojo | 123 } // namespace mojo |
124 | 124 |
125 #endif // MOJO_EMBEDDER_EMBEDDER_H_ | 125 #endif // MOJO_EDK_EMBEDDER_EMBEDDER_H_ |
OLD | NEW |