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/test/utility/tap_proxy.cc | |
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/test/utility/tap_proxy.cc')
-rw-r--r-- | media/cast/test/utility/tap_proxy.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/media/cast/test/utility/tap_proxy.cc b/media/cast/test/utility/tap_proxy.cc index 6aca4f3..fa3e1b6 100644 --- a/media/cast/test/utility/tap_proxy.cc +++ b/media/cast/test/utility/tap_proxy.cc @@ -41,7 +41,7 @@ class SendToFDPipe : public PacketPipe { public: explicit SendToFDPipe(int fd) : fd_(fd) { } - void Send(scoped_ptr<Packet> packet) override { + void Send(scoped_ptr<Packet> packet) final { while (1) { int written = write( fd_, @@ -85,10 +85,10 @@ class QueueManager : public base::MessageLoopForIO::Watcher { &tick_clock_); } - ~QueueManager() override {} + ~QueueManager() final {} // MessageLoopForIO::Watcher methods - void OnFileCanReadWithoutBlocking(int fd) override { + void OnFileCanReadWithoutBlocking(int fd) final { scoped_ptr<Packet> packet(new Packet(kMaxPacketSize)); int nread = read(input_fd_, reinterpret_cast<char*>(&packet->front()), @@ -102,7 +102,7 @@ class QueueManager : public base::MessageLoopForIO::Watcher { packet->resize(nread); packet_pipe_->Send(packet.Pass()); } - void OnFileCanWriteWithoutBlocking(int fd) override { NOTREACHED(); } + void OnFileCanWriteWithoutBlocking(int fd) final { NOTREACHED(); } private: int input_fd_; @@ -169,7 +169,7 @@ ByteCounter out_pipe_output_counter; class ByteCounterPipe : public media::cast::test::PacketPipe { public: ByteCounterPipe(ByteCounter* counter) : counter_(counter) {} - void Send(scoped_ptr<media::cast::Packet> packet) override { + void Send(scoped_ptr<media::cast::Packet> packet) final { counter_->Increment(packet->size()); pipe_->Send(packet.Pass()); } |