diff options
author | hubbe <hubbe@chromium.org> | 2015-04-29 16:25:49 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-29 23:26:28 +0000 |
commit | d9acbbebb5b391d6d190f9e2a1629f48f0fe11a0 (patch) | |
tree | e12c15d9d94f8099ce2b5a172fafcf36b0ce5e6b /media/cast/logging | |
parent | c73fce65a5963c8013e8a0a2b0251ba7c02bfccc (diff) | |
download | chromium_src-d9acbbebb5b391d6d190f9e2a1629f48f0fe11a0.zip chromium_src-d9acbbebb5b391d6d190f9e2a1629f48f0fe11a0.tar.gz chromium_src-d9acbbebb5b391d6d190f9e2a1629f48f0fe11a0.tar.bz2 |
Cast: Change override to final wherever possible.
Should provide a modest speedup.
Review URL: https://codereview.chromium.org/1112803005
Cr-Commit-Position: refs/heads/master@{#327612}
Diffstat (limited to 'media/cast/logging')
4 files changed, 13 insertions, 13 deletions
diff --git a/media/cast/logging/encoding_event_subscriber.h b/media/cast/logging/encoding_event_subscriber.h index a67e5bc..f72fe33 100644 --- a/media/cast/logging/encoding_event_subscriber.h +++ b/media/cast/logging/encoding_event_subscriber.h @@ -49,11 +49,11 @@ class EncodingEventSubscriber : public RawEventSubscriber { // timestamp). EncodingEventSubscriber(EventMediaType event_media_type, size_t max_frames); - ~EncodingEventSubscriber() override; + ~EncodingEventSubscriber() final; // RawReventSubscriber implementations. - void OnReceiveFrameEvent(const FrameEvent& frame_event) override; - void OnReceivePacketEvent(const PacketEvent& packet_event) override; + void OnReceiveFrameEvent(const FrameEvent& frame_event) final; + void OnReceivePacketEvent(const PacketEvent& packet_event) final; // Assigns frame events and packet events received so far to |frame_events| // and |packet_events| and resets the internal state. diff --git a/media/cast/logging/receiver_time_offset_estimator_impl.h b/media/cast/logging/receiver_time_offset_estimator_impl.h index bc5348b..c2b6455 100644 --- a/media/cast/logging/receiver_time_offset_estimator_impl.h +++ b/media/cast/logging/receiver_time_offset_estimator_impl.h @@ -36,15 +36,15 @@ class ReceiverTimeOffsetEstimatorImpl : public ReceiverTimeOffsetEstimator { public: ReceiverTimeOffsetEstimatorImpl(); - ~ReceiverTimeOffsetEstimatorImpl() override; + ~ReceiverTimeOffsetEstimatorImpl() final; // RawEventSubscriber implementations. - void OnReceiveFrameEvent(const FrameEvent& frame_event) override; - void OnReceivePacketEvent(const PacketEvent& packet_event) override; + void OnReceiveFrameEvent(const FrameEvent& frame_event) final; + void OnReceivePacketEvent(const PacketEvent& packet_event) final; // ReceiverTimeOffsetEstimator implementation. bool GetReceiverOffsetBounds(base::TimeDelta* lower_bound, - base::TimeDelta* upper_bound) override; + base::TimeDelta* upper_bound) final; private: // This helper uses the difference between sent and recived event diff --git a/media/cast/logging/simple_event_subscriber.h b/media/cast/logging/simple_event_subscriber.h index 176ab8c..1bdce45 100644 --- a/media/cast/logging/simple_event_subscriber.h +++ b/media/cast/logging/simple_event_subscriber.h @@ -22,11 +22,11 @@ class SimpleEventSubscriber : public RawEventSubscriber { public: SimpleEventSubscriber(); - ~SimpleEventSubscriber() override; + ~SimpleEventSubscriber() final; // RawEventSubscriber implementations. - void OnReceiveFrameEvent(const FrameEvent& frame_event) override; - void OnReceivePacketEvent(const PacketEvent& packet_event) override; + void OnReceiveFrameEvent(const FrameEvent& frame_event) final; + void OnReceivePacketEvent(const PacketEvent& packet_event) final; // Assigns frame events received so far to |frame_events| and clears them // from this object. diff --git a/media/cast/logging/stats_event_subscriber.h b/media/cast/logging/stats_event_subscriber.h index 8c50669..36d5110 100644 --- a/media/cast/logging/stats_event_subscriber.h +++ b/media/cast/logging/stats_event_subscriber.h @@ -32,11 +32,11 @@ class StatsEventSubscriber : public RawEventSubscriber { base::TickClock* clock, ReceiverTimeOffsetEstimator* offset_estimator); - ~StatsEventSubscriber() override; + ~StatsEventSubscriber() final; // RawReventSubscriber implementations. - void OnReceiveFrameEvent(const FrameEvent& frame_event) override; - void OnReceivePacketEvent(const PacketEvent& packet_event) override; + void OnReceiveFrameEvent(const FrameEvent& frame_event) final; + void OnReceivePacketEvent(const PacketEvent& packet_event) final; // Returns stats as a DictionaryValue. The dictionary contains one entry - // "audio" or "video" pointing to an inner dictionary. |