OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "base/big_endian.h" | 5 #include "base/big_endian.h" |
6 #include "base/debug/trace_event.h" | 6 #include "base/trace_event/trace_event.h" |
7 #include "media/cast/logging/logging_impl.h" | 7 #include "media/cast/logging/logging_impl.h" |
8 | 8 |
9 namespace media { | 9 namespace media { |
10 namespace cast { | 10 namespace cast { |
11 | 11 |
12 // TODO(imcheng): Collapse LoggingRaw onto LoggingImpl. | 12 // TODO(imcheng): Collapse LoggingRaw onto LoggingImpl. |
13 LoggingImpl::LoggingImpl() { | 13 LoggingImpl::LoggingImpl() { |
14 // LoggingImpl can be constructed on any thread, but its methods should all be | 14 // LoggingImpl can be constructed on any thread, but its methods should all be |
15 // called on the same thread. | 15 // called on the same thread. |
16 thread_checker_.DetachFromThread(); | 16 thread_checker_.DetachFromThread(); |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 raw_.AddSubscriber(subscriber); | 106 raw_.AddSubscriber(subscriber); |
107 } | 107 } |
108 | 108 |
109 void LoggingImpl::RemoveRawEventSubscriber(RawEventSubscriber* subscriber) { | 109 void LoggingImpl::RemoveRawEventSubscriber(RawEventSubscriber* subscriber) { |
110 DCHECK(thread_checker_.CalledOnValidThread()); | 110 DCHECK(thread_checker_.CalledOnValidThread()); |
111 raw_.RemoveSubscriber(subscriber); | 111 raw_.RemoveSubscriber(subscriber); |
112 } | 112 } |
113 | 113 |
114 } // namespace cast | 114 } // namespace cast |
115 } // namespace media | 115 } // namespace media |
OLD | NEW |