Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: mojo/public/cpp/environment/lib/logging_only_environment.cc

Issue 1426843004: Remove the task tracking stuff in the bindings. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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() {} 15 Environment::Environment() {}
16 16
17 Environment::Environment(const MojoAsyncWaiter* default_async_waiter, 17 Environment::Environment(const MojoAsyncWaiter* default_async_waiter,
18 const MojoLogger* default_logger, 18 const MojoLogger* default_logger) {}
19 const TaskTracker* default_task_tracker) {}
20 19
21 Environment::~Environment() {} 20 Environment::~Environment() {}
22 21
23 // static 22 // static
24 const MojoAsyncWaiter* Environment::GetDefaultAsyncWaiter() { 23 const MojoAsyncWaiter* Environment::GetDefaultAsyncWaiter() {
25 return nullptr; 24 return nullptr;
26 } 25 }
27 26
28 // static 27 // static
29 const MojoLogger* Environment::GetDefaultLogger() { 28 const MojoLogger* Environment::GetDefaultLogger() {
30 return &internal::kDefaultLogger; 29 return &internal::kDefaultLogger;
31 } 30 }
32 31
33 // static 32 // static
34 const TaskTracker* Environment::GetDefaultTaskTracker() {
35 return nullptr;
36 }
37
38 // static
39 void Environment::InstantiateDefaultRunLoop() {} 33 void Environment::InstantiateDefaultRunLoop() {}
40 34
41 // static 35 // static
42 void Environment::DestroyDefaultRunLoop() {} 36 void Environment::DestroyDefaultRunLoop() {}
43 37
44 } // namespace mojo 38 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/public/cpp/environment/lib/environment.cc ('k') | mojo/public/cpp/environment/lib/scoped_task_tracking.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698