Home | History | Annotate | Download | only in embedder
      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 #include "mojo/edk/system/system_impl_export.h"
     15 
     16 namespace base {
     17 class TaskRunner;
     18 }
     19 
     20 namespace mojo {
     21 
     22 namespace edk {
     23 
     24 class Broker;
     25 class Core;
     26 class ProcessDelegate;
     27 
     28 namespace internal {
     29 
     30 // Instance of |Broker| to use.
     31 extern Broker* g_broker;
     32 
     33 // Instance of |Core| used by the system functions (|Mojo...()|).
     34 extern MOJO_SYSTEM_IMPL_EXPORT Core* g_core;
     35 extern base::TaskRunner* g_delegate_thread_task_runner;
     36 extern ProcessDelegate* g_process_delegate;
     37 
     38 }  // namespace internal
     39 
     40 }  // namepace edk
     41 
     42 }  // namespace mojo
     43 
     44 #endif  // MOJO_EDK_EMBEDDER_EMBEDDER_INTERNAL_H_
     45