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

Side by Side Diff: Source/platform/exported/WebMediaStreamSource.cpp

Issue 631803002: Replacing the OVERRIDE with override and FINAL with final (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase issue Created 6 years, 2 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 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 ASSERT(!m_private.isNull()); 154 ASSERT(!m_private.isNull());
155 return m_private->constraints(); 155 return m_private->constraints();
156 } 156 }
157 157
158 bool WebMediaStreamSource::requiresAudioConsumer() const 158 bool WebMediaStreamSource::requiresAudioConsumer() const
159 { 159 {
160 ASSERT(!m_private.isNull()); 160 ASSERT(!m_private.isNull());
161 return m_private->requiresAudioConsumer(); 161 return m_private->requiresAudioConsumer();
162 } 162 }
163 163
164 class ConsumerWrapper FINAL : public AudioDestinationConsumer { 164 class ConsumerWrapper final : public AudioDestinationConsumer {
165 public: 165 public:
166 static ConsumerWrapper* create(WebAudioDestinationConsumer* consumer) 166 static ConsumerWrapper* create(WebAudioDestinationConsumer* consumer)
167 { 167 {
168 return new ConsumerWrapper(consumer); 168 return new ConsumerWrapper(consumer);
169 } 169 }
170 170
171 virtual void setFormat(size_t numberOfChannels, float sampleRate) override; 171 virtual void setFormat(size_t numberOfChannels, float sampleRate) override;
172 virtual void consumeAudio(AudioBus*, size_t numberOfFrames) override; 172 virtual void consumeAudio(AudioBus*, size_t numberOfFrames) override;
173 173
174 WebAudioDestinationConsumer* consumer() { return m_consumer; } 174 WebAudioDestinationConsumer* consumer() { return m_consumer; }
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 ConsumerWrapper* wrapper = static_cast<ConsumerWrapper*>(it->get()); 217 ConsumerWrapper* wrapper = static_cast<ConsumerWrapper*>(it->get());
218 if (wrapper->consumer() == consumer) { 218 if (wrapper->consumer() == consumer) {
219 m_private->removeAudioConsumer(wrapper); 219 m_private->removeAudioConsumer(wrapper);
220 return true; 220 return true;
221 } 221 }
222 } 222 }
223 return false; 223 return false;
224 } 224 }
225 225
226 } // namespace blink 226 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/exported/WebMediaDeviceInfo.cpp ('k') | Source/platform/exported/WebRTCICECandidate.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698