| 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 // This header contains internal details for the *implementation* of the | 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 | 6 // embedder API. It should not be included by any public header (nor by users of |
| 7 // the embedder API). | 7 // the embedder API). |
| 8 | 8 |
| 9 #ifndef MOJO_EDK_EMBEDDER_EMBEDDER_INTERNAL_H_ | 9 #ifndef MOJO_EDK_EMBEDDER_EMBEDDER_INTERNAL_H_ |
| 10 #define MOJO_EDK_EMBEDDER_EMBEDDER_INTERNAL_H_ | 10 #define MOJO_EDK_EMBEDDER_EMBEDDER_INTERNAL_H_ |
| 11 | 11 |
| 12 #include <stdint.h> | 12 #include <stdint.h> |
| 13 | 13 |
| 14 #include "mojo/edk/system/system_impl_export.h" | 14 #include "mojo/edk/system/system_impl_export.h" |
| 15 | 15 |
| 16 namespace base { | 16 namespace base { |
| 17 class TaskRunner; | 17 class TaskRunner; |
| 18 } | 18 } |
| 19 | 19 |
| 20 namespace mojo { | 20 namespace mojo { |
| 21 | 21 |
| 22 namespace edk { | 22 namespace edk { |
| 23 | 23 |
| 24 class Broker; |
| 24 class Core; | 25 class Core; |
| 25 class PlatformSupport; | 26 class PlatformSupport; |
| 26 class ProcessDelegate; | 27 class ProcessDelegate; |
| 27 class TokenSerializer; | |
| 28 | 28 |
| 29 namespace internal { | 29 namespace internal { |
| 30 | 30 |
| 31 #if defined(OS_WIN) | 31 // Instance of |Broker| to use. |
| 32 // Instance of |TokenSerializer| to use. | 32 extern Broker* g_broker; |
| 33 extern TokenSerializer* g_token_serializer; | |
| 34 #endif | |
| 35 | 33 |
| 36 // Instance of |PlatformSupport| to use. | 34 // Instance of |PlatformSupport| to use. |
| 37 extern PlatformSupport* g_platform_support; | 35 extern PlatformSupport* g_platform_support; |
| 38 | 36 |
| 39 // Instance of |Core| used by the system functions (|Mojo...()|). | 37 // Instance of |Core| used by the system functions (|Mojo...()|). |
| 40 extern Core* g_core; | 38 extern Core* g_core; |
| 41 extern base::TaskRunner* g_delegate_thread_task_runner; | 39 extern base::TaskRunner* g_delegate_thread_task_runner; |
| 42 extern ProcessDelegate* g_process_delegate; | 40 extern ProcessDelegate* g_process_delegate; |
| 43 extern base::TaskRunner* g_io_thread_task_runner; | 41 extern base::TaskRunner* g_io_thread_task_runner; |
| 44 | 42 |
| 45 // TODO(use_chrome_edk): temporary until we have only one SDK. | 43 // TODO(use_chrome_edk): temporary until we have only one SDK. |
| 46 MOJO_SYSTEM_IMPL_EXPORT Core* GetCore(); | 44 MOJO_SYSTEM_IMPL_EXPORT Core* GetCore(); |
| 47 | 45 |
| 48 // Called on the IO thread. | 46 // Called on the IO thread. |
| 49 void ChannelStarted(); | 47 void ChannelStarted(); |
| 50 void ChannelShutdown(); | 48 void ChannelShutdown(); |
| 51 } // namespace internal | 49 } // namespace internal |
| 52 | 50 |
| 53 } // namepace edk | 51 } // namepace edk |
| 54 | 52 |
| 55 } // namespace mojo | 53 } // namespace mojo |
| 56 | 54 |
| 57 #endif // MOJO_EDK_EMBEDDER_EMBEDDER_INTERNAL_H_ | 55 #endif // MOJO_EDK_EMBEDDER_EMBEDDER_INTERNAL_H_ |
| OLD | NEW |