mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
54 lines
1.3 KiB
C++
54 lines
1.3 KiB
C++
// 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.
|
|
|
|
#include "mojo/public/cpp/environment/environment.h"
|
|
|
|
#include "mojo/environment/default_async_waiter_impl.h"
|
|
#include "mojo/environment/default_logger_impl.h"
|
|
#include "mojo/environment/default_run_loop_impl.h"
|
|
#include "mojo/environment/default_task_tracker_impl.h"
|
|
|
|
namespace mojo {
|
|
|
|
// These methods are intentionally not implemented so that there is a link
|
|
// error if someone uses them in a Chromium-environment.
|
|
#if 0
|
|
Environment::Environment() {
|
|
}
|
|
|
|
Environment::Environment(const MojoAsyncWaiter* default_async_waiter,
|
|
const MojoLogger* default_logger) {
|
|
}
|
|
|
|
Environment::~Environment() {
|
|
}
|
|
#endif
|
|
|
|
// static
|
|
const MojoAsyncWaiter* Environment::GetDefaultAsyncWaiter() {
|
|
return internal::GetDefaultAsyncWaiterImpl();
|
|
}
|
|
|
|
// static
|
|
const MojoLogger* Environment::GetDefaultLogger() {
|
|
return internal::GetDefaultLoggerImpl();
|
|
}
|
|
|
|
// static
|
|
const TaskTracker* Environment::GetDefaultTaskTracker() {
|
|
return internal::GetDefaultTaskTrackerImpl();
|
|
}
|
|
|
|
// static
|
|
void Environment::InstantiateDefaultRunLoop() {
|
|
internal::InstantiateDefaultRunLoopImpl();
|
|
}
|
|
|
|
// static
|
|
void Environment::DestroyDefaultRunLoop() {
|
|
internal::DestroyDefaultRunLoopImpl();
|
|
}
|
|
|
|
} // namespace mojo
|