blob: 99ea3927c31a3377e8f71a6d89cc49fdd5071a8f [file] [log] [blame]
// 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>
#include "mojo/edk/system/system_impl_export.h"
namespace base {
class TaskRunner;
}
namespace mojo {
namespace edk {
class Broker;
class Core;
class PlatformSupport;
class ProcessDelegate;
namespace internal {
// Instance of |Broker| to use.
extern Broker* g_broker;
// 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;
// TODO(use_chrome_edk): temporary until we have only one SDK.
MOJO_SYSTEM_IMPL_EXPORT Core* GetCore();
// Called on the IO thread.
void ChannelStarted();
void ChannelShutdown();
} // namespace internal
} // namepace edk
} // namespace mojo
#endif // MOJO_EDK_EMBEDDER_EMBEDDER_INTERNAL_H_