OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This is a minimal definition of |Environment| that includes only a logger. | 5 // This is a minimal definition of |Environment| that includes only a logger. |
6 // This is just enough to be able to use |MOJO_LOG()| and related macros in | 6 // This is just enough to be able to use |MOJO_LOG()| and related macros in |
7 // logging.h. | 7 // logging.h. |
8 | 8 |
9 #include "mojo/public/cpp/environment/environment.h" | 9 #include "mojo/public/cpp/environment/environment.h" |
10 | 10 |
11 #include "mojo/public/cpp/environment/lib/default_logger.h" | 11 #include "mojo/public/cpp/environment/lib/default_logger.h" |
12 | 12 |
13 namespace mojo { | 13 namespace mojo { |
14 | 14 |
15 Environment::Environment() {} | |
16 | |
17 Environment::Environment(const MojoAsyncWaiter* default_async_waiter, | |
18 const MojoLogger* default_logger) {} | |
19 | |
20 Environment::~Environment() {} | |
21 | |
22 // static | 15 // static |
23 const MojoLogger* Environment::GetDefaultLogger() { | 16 const MojoLogger* Environment::GetDefaultLogger() { |
24 return &internal::kDefaultLogger; | 17 return &internal::kDefaultLogger; |
25 } | 18 } |
26 | 19 |
27 } // namespace mojo | 20 } // namespace mojo |
OLD | NEW |