blob: f8611139381a1440940a85821edbc73c5751112f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
// 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"
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();
}
} // namespace mojo
|