Index: mojo/edk/embedder/embedder_internal.h |
diff --git a/mojo/edk/embedder/embedder_internal.h b/mojo/edk/embedder/embedder_internal.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6fd3dfcdbad8ac506b81564edeb37cc168364faf |
--- /dev/null |
+++ b/mojo/edk/embedder/embedder_internal.h |
@@ -0,0 +1,46 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+// This header contains internal details for the *implementation* of the |
+// embedder API. It should not be included by any public header (nor by users of |
+// the embedder API). |
+ |
+#ifndef MOJO_EDK_EMBEDDER_EMBEDDER_INTERNAL_H_ |
+#define MOJO_EDK_EMBEDDER_EMBEDDER_INTERNAL_H_ |
+ |
+#include <stdint.h> |
+ |
+namespace base { |
+class TaskRunner; |
+} |
+ |
+namespace mojo { |
+ |
+namespace edk { |
+ |
+class Core; |
+class PlatformSupport; |
+class ProcessDelegate; |
+ |
+namespace internal { |
+ |
+// Instance of |PlatformSupport| to use. |
+extern PlatformSupport* g_platform_support; |
+ |
+// Instance of |Core| used by the system functions (|Mojo...()|). |
+extern Core* g_core; |
+extern base::TaskRunner* g_delegate_thread_task_runner; |
+extern ProcessDelegate* g_process_delegate; |
+extern base::TaskRunner* g_io_thread_task_runner; |
+ |
+// Called on the IO thread. |
+void ChannelStarted(); |
+void ChannelShutdown(); |
+} // namespace internal |
+ |
+} // namepace edk |
+ |
+} // namespace mojo |
+ |
+#endif // MOJO_EDK_EMBEDDER_EMBEDDER_INTERNAL_H_ |