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 #ifndef MEDIA_CAST_LOGGING_SIMPLE_EVENT_SUBSCRIBER_H_ | 5 #ifndef MEDIA_CAST_LOGGING_SIMPLE_EVENT_SUBSCRIBER_H_ |
6 #define MEDIA_CAST_LOGGING_SIMPLE_EVENT_SUBSCRIBER_H_ | 6 #define MEDIA_CAST_LOGGING_SIMPLE_EVENT_SUBSCRIBER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/macros.h" |
11 #include "base/threading/thread_checker.h" | 12 #include "base/threading/thread_checker.h" |
12 #include "media/cast/logging/raw_event_subscriber.h" | 13 #include "media/cast/logging/raw_event_subscriber.h" |
13 | 14 |
14 namespace media { | 15 namespace media { |
15 namespace cast { | 16 namespace cast { |
16 | 17 |
17 // RawEventSubscriber implementation that records all incoming raw events | 18 // RawEventSubscriber implementation that records all incoming raw events |
18 // in std::vector's. | 19 // in std::vector's. |
19 // The user of this class can call the GetXXXEventsAndReset functions to get | 20 // The user of this class can call the GetXXXEventsAndReset functions to get |
20 // list of events that have acccumulated since last inovcation. | 21 // list of events that have acccumulated since last inovcation. |
(...skipping 22 matching lines...) Expand all Loading... |
43 // All functions must be called on the main thread. | 44 // All functions must be called on the main thread. |
44 base::ThreadChecker thread_checker_; | 45 base::ThreadChecker thread_checker_; |
45 | 46 |
46 DISALLOW_COPY_AND_ASSIGN(SimpleEventSubscriber); | 47 DISALLOW_COPY_AND_ASSIGN(SimpleEventSubscriber); |
47 }; | 48 }; |
48 | 49 |
49 } // namespace cast | 50 } // namespace cast |
50 } // namespace media | 51 } // namespace media |
51 | 52 |
52 #endif // MEDIA_CAST_LOGGING_SIMPLE_EVENT_SUBSCRIBER_H_ | 53 #endif // MEDIA_CAST_LOGGING_SIMPLE_EVENT_SUBSCRIBER_H_ |
OLD | NEW |