| 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/threading/thread_checker.h" | 11 #include "base/threading/thread_checker.h" |
| 11 #include "media/cast/logging/raw_event_subscriber.h" | 12 #include "media/cast/logging/raw_event_subscriber.h" |
| 12 | 13 |
| 13 namespace media { | 14 namespace media { |
| 14 namespace cast { | 15 namespace cast { |
| 15 | 16 |
| 16 // RawEventSubscriber implementation that records all incoming raw events | 17 // RawEventSubscriber implementation that records all incoming raw events |
| 17 // in std::vector's. | 18 // in std::vector's. |
| 18 // The user of this class can call the GetXXXEventsAndReset functions to get | 19 // The user of this class can call the GetXXXEventsAndReset functions to get |
| 19 // list of events that have acccumulated since last inovcation. | 20 // list of events that have acccumulated since last inovcation. |
| (...skipping 29 matching lines...) Expand all Loading... |
| 49 // All functions must be called on the main thread. | 50 // All functions must be called on the main thread. |
| 50 base::ThreadChecker thread_checker_; | 51 base::ThreadChecker thread_checker_; |
| 51 | 52 |
| 52 DISALLOW_COPY_AND_ASSIGN(SimpleEventSubscriber); | 53 DISALLOW_COPY_AND_ASSIGN(SimpleEventSubscriber); |
| 53 }; | 54 }; |
| 54 | 55 |
| 55 } // namespace cast | 56 } // namespace cast |
| 56 } // namespace media | 57 } // namespace media |
| 57 | 58 |
| 58 #endif // MEDIA_CAST_LOGGING_SIMPLE_EVENT_SUBSCRIBER_H_ | 59 #endif // MEDIA_CAST_LOGGING_SIMPLE_EVENT_SUBSCRIBER_H_ |
| OLD | NEW |