OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "remoting/base/tracer.h" | 5 #include "remoting/base/tracer.h" |
6 | 6 |
7 #include <list> | 7 #include <list> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/condition_variable.h" | 10 #include "base/condition_variable.h" |
11 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
13 #include "base/platform_thread.h" | 13 #include "base/platform_thread.h" |
14 #include "base/rand_util.h" | 14 #include "base/rand_util.h" |
15 #include "base/ref_counted.h" | 15 #include "base/ref_counted.h" |
16 #include "base/stl_util-inl.h" | 16 #include "base/stl_util-inl.h" |
17 #include "base/thread.h" | 17 #include "base/threading/thread.h" |
18 #include "base/threading/thread_local.h" | 18 #include "base/threading/thread_local.h" |
19 #include "base/time.h" | 19 #include "base/time.h" |
20 | 20 |
21 namespace remoting { | 21 namespace remoting { |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
25 class OutputLogger { | 25 class OutputLogger { |
26 public: | 26 public: |
27 OutputLogger() | 27 OutputLogger() |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 } | 183 } |
184 | 184 |
185 void TraceContext::PopTracerInternal() { tracers_.pop_back(); } | 185 void TraceContext::PopTracerInternal() { tracers_.pop_back(); } |
186 | 186 |
187 Tracer* TraceContext::GetTracerInternal() { return tracers_.back(); } | 187 Tracer* TraceContext::GetTracerInternal() { return tracers_.back(); } |
188 | 188 |
189 | 189 |
190 } // namespace remoting | 190 } // namespace remoting |
191 | 191 |
192 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::OutputLogger); | 192 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::OutputLogger); |
OLD | NEW |