| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 #include "third_party/mojo/src/mojo/public/cpp/environment/environment.h" | 5 #include "mojo/public/cpp/environment/environment.h" |
| 6 | 6 |
| 7 #include <assert.h> | 7 #include <assert.h> |
| 8 | 8 |
| 9 #include "third_party/mojo/src/mojo/public/c/environment/logger.h" | 9 #include "mojo/public/c/environment/logger.h" |
| 10 #include "third_party/mojo/src/mojo/public/cpp/environment/lib/default_async_wai
ter.h" | 10 #include "mojo/public/cpp/environment/lib/default_async_waiter.h" |
| 11 #include "third_party/mojo/src/mojo/public/cpp/environment/lib/default_logger.h" | 11 #include "mojo/public/cpp/environment/lib/default_logger.h" |
| 12 #include "third_party/mojo/src/mojo/public/cpp/environment/lib/default_task_trac
ker.h" | 12 #include "mojo/public/cpp/environment/lib/default_task_tracker.h" |
| 13 #include "third_party/mojo/src/mojo/public/cpp/utility/run_loop.h" | 13 #include "mojo/public/cpp/utility/run_loop.h" |
| 14 | 14 |
| 15 namespace mojo { | 15 namespace mojo { |
| 16 | 16 |
| 17 namespace { | 17 namespace { |
| 18 | 18 |
| 19 const MojoAsyncWaiter* g_default_async_waiter = nullptr; | 19 const MojoAsyncWaiter* g_default_async_waiter = nullptr; |
| 20 const MojoLogger* g_default_logger = nullptr; | 20 const MojoLogger* g_default_logger = nullptr; |
| 21 const TaskTracker* g_default_task_tracker = nullptr; | 21 const TaskTracker* g_default_task_tracker = nullptr; |
| 22 | 22 |
| 23 void Init(const MojoAsyncWaiter* default_async_waiter, | 23 void Init(const MojoAsyncWaiter* default_async_waiter, |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 } | 84 } |
| 85 | 85 |
| 86 // static | 86 // static |
| 87 void Environment::DestroyDefaultRunLoop() { | 87 void Environment::DestroyDefaultRunLoop() { |
| 88 assert(RunLoop::current()); | 88 assert(RunLoop::current()); |
| 89 delete RunLoop::current(); | 89 delete RunLoop::current(); |
| 90 assert(!RunLoop::current()); | 90 assert(!RunLoop::current()); |
| 91 } | 91 } |
| 92 | 92 |
| 93 } // namespace mojo | 93 } // namespace mojo |
| OLD | NEW |