OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // This header contains internal details for the *implementation* of the |
| 6 // embedder API. It should not be included by any public header (nor by users of |
| 7 // the embedder API). |
| 8 |
| 9 #ifndef MOJO_EDK_EMBEDDER_EMBEDDER_INTERNAL_H_ |
| 10 #define MOJO_EDK_EMBEDDER_EMBEDDER_INTERNAL_H_ |
| 11 |
| 12 #include <stdint.h> |
| 13 |
| 14 namespace base { |
| 15 class TaskRunner; |
| 16 } |
| 17 |
| 18 namespace mojo { |
| 19 |
| 20 namespace edk { |
| 21 |
| 22 class Core; |
| 23 class PlatformSupport; |
| 24 class ProcessDelegate; |
| 25 |
| 26 namespace internal { |
| 27 |
| 28 // Instance of |PlatformSupport| to use. |
| 29 extern PlatformSupport* g_platform_support; |
| 30 |
| 31 // Instance of |Core| used by the system functions (|Mojo...()|). |
| 32 extern Core* g_core; |
| 33 extern base::TaskRunner* g_delegate_thread_task_runner; |
| 34 extern ProcessDelegate* g_process_delegate; |
| 35 extern base::TaskRunner* g_io_thread_task_runner; |
| 36 |
| 37 // Called on the IO thread. |
| 38 void ChannelStarted(); |
| 39 void ChannelShutdown(); |
| 40 } // namespace internal |
| 41 |
| 42 } // namepace edk |
| 43 |
| 44 } // namespace mojo |
| 45 |
| 46 #endif // MOJO_EDK_EMBEDDER_EMBEDDER_INTERNAL_H_ |
OLD | NEW |