| 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_RAW_EVENT_SUBSCRIBER_BUNDLE_H_ | 5 #ifndef MEDIA_CAST_LOGGING_RAW_EVENT_SUBSCRIBER_BUNDLE_H_ |
| 6 #define MEDIA_CAST_LOGGING_RAW_EVENT_SUBSCRIBER_BUNDLE_H_ | 6 #define MEDIA_CAST_LOGGING_RAW_EVENT_SUBSCRIBER_BUNDLE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "media/cast/logging/encoding_event_subscriber.h" | 10 #include "media/cast/logging/encoding_event_subscriber.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 StatsEventSubscriber* GetStatsEventSubscriber(bool is_audio); | 65 StatsEventSubscriber* GetStatsEventSubscriber(bool is_audio); |
| 66 | 66 |
| 67 private: | 67 private: |
| 68 // Map from (is_audio) -> RawEventSubscriberBundleForStream. | 68 // Map from (is_audio) -> RawEventSubscriberBundleForStream. |
| 69 // TODO(imcheng): This works because we only have 1 audio and 1 video stream. | 69 // TODO(imcheng): This works because we only have 1 audio and 1 video stream. |
| 70 // This needs to scale better. | 70 // This needs to scale better. |
| 71 typedef std::map<bool, linked_ptr<RawEventSubscriberBundleForStream> > | 71 typedef std::map<bool, linked_ptr<RawEventSubscriberBundleForStream> > |
| 72 SubscribersMapByStream; | 72 SubscribersMapByStream; |
| 73 const scoped_refptr<CastEnvironment> cast_environment_; | 73 const scoped_refptr<CastEnvironment> cast_environment_; |
| 74 SubscribersMapByStream subscribers_; | 74 SubscribersMapByStream subscribers_; |
| 75 scoped_ptr<ReceiverTimeOffsetEstimator> receiver_offset_estimator_; | 75 std::unique_ptr<ReceiverTimeOffsetEstimator> receiver_offset_estimator_; |
| 76 | 76 |
| 77 DISALLOW_COPY_AND_ASSIGN(RawEventSubscriberBundle); | 77 DISALLOW_COPY_AND_ASSIGN(RawEventSubscriberBundle); |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 } // namespace cast | 80 } // namespace cast |
| 81 } // namespace media | 81 } // namespace media |
| 82 | 82 |
| 83 #endif // MEDIA_CAST_LOGGING_RAW_EVENT_SUBSCRIBER_BUNDLE_H_ | 83 #endif // MEDIA_CAST_LOGGING_RAW_EVENT_SUBSCRIBER_BUNDLE_H_ |
| 84 | 84 |
| OLD | NEW |