OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "mojo/public/cpp/environment/lib/default_task_tracker.h" | |
6 | |
7 #include "mojo/public/cpp/environment/task_tracker.h" | |
8 | |
9 namespace mojo { | |
10 | |
11 namespace { | |
12 | |
13 // | |
14 // The standalone task tracker does nothing. | |
15 // | |
16 | |
17 TaskTrackingId StartTracking(const char* function_name, | |
18 const char* file_name, | |
19 int line_number, | |
20 const void* program_counter) { | |
21 return TaskTrackingId(0); | |
22 } | |
23 | |
24 void EndTracking(const TaskTrackingId id) { | |
25 } | |
26 | |
27 void SetEnabled(bool enabled) { | |
28 } | |
29 | |
30 } // namespace | |
31 | |
32 namespace internal { | |
33 | |
34 const TaskTracker kDefaultTaskTracker = {&StartTracking, | |
35 &EndTracking, | |
36 &SetEnabled}; | |
37 | |
38 } // namespace internal | |
39 | |
40 } // namespace mojo | |
OLD | NEW |