Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(93)

Side by Side Diff: media/cast/logging/raw_event_subscriber_bundle.h

Issue 1905763002: Convert //media/cast from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « media/cast/logging/log_serializer.cc ('k') | media/cast/logging/receiver_time_offset_estimator_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698