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

Side by Side Diff: Source/modules/webaudio/MediaStreamAudioDestinationNode.h

Issue 1227783004: Fix virtual/override/final usage in Source/modules/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 5 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012, Google Inc. All rights reserved. 2 * Copyright (C) 2012, 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 22 matching lines...) Expand all
33 #include "wtf/OwnPtr.h" 33 #include "wtf/OwnPtr.h"
34 #include "wtf/PassRefPtr.h" 34 #include "wtf/PassRefPtr.h"
35 35
36 namespace blink { 36 namespace blink {
37 37
38 class AudioContext; 38 class AudioContext;
39 39
40 class MediaStreamAudioDestinationHandler final : public AudioBasicInspectorHandl er { 40 class MediaStreamAudioDestinationHandler final : public AudioBasicInspectorHandl er {
41 public: 41 public:
42 static PassRefPtr<MediaStreamAudioDestinationHandler> create(AudioNode&, siz e_t numberOfChannels); 42 static PassRefPtr<MediaStreamAudioDestinationHandler> create(AudioNode&, siz e_t numberOfChannels);
43 virtual ~MediaStreamAudioDestinationHandler(); 43 ~MediaStreamAudioDestinationHandler() override;
44 44
45 MediaStream* stream() { return m_stream.get(); } 45 MediaStream* stream() { return m_stream.get(); }
46 46
47 // AudioHandler. 47 // AudioHandler.
48 virtual void process(size_t framesToProcess) override; 48 void process(size_t framesToProcess) override;
49 49
50 private: 50 private:
51 MediaStreamAudioDestinationHandler(AudioNode&, size_t numberOfChannels); 51 MediaStreamAudioDestinationHandler(AudioNode&, size_t numberOfChannels);
52 // As an audio source, we will never propagate silence. 52 // As an audio source, we will never propagate silence.
53 virtual bool propagatesSilence() const override { return false; } 53 bool propagatesSilence() const override { return false; }
54 54
55 // This Persistent doesn't make a reference cycle. 55 // This Persistent doesn't make a reference cycle.
56 Persistent<MediaStream> m_stream; 56 Persistent<MediaStream> m_stream;
57 RefPtr<MediaStreamSource> m_source; 57 RefPtr<MediaStreamSource> m_source;
58 RefPtr<AudioBus> m_mixBus; 58 RefPtr<AudioBus> m_mixBus;
59 }; 59 };
60 60
61 class MediaStreamAudioDestinationNode final : public AudioBasicInspectorNode { 61 class MediaStreamAudioDestinationNode final : public AudioBasicInspectorNode {
62 DEFINE_WRAPPERTYPEINFO(); 62 DEFINE_WRAPPERTYPEINFO();
63 public: 63 public:
64 static MediaStreamAudioDestinationNode* create(AudioContext&, size_t numberO fChannels); 64 static MediaStreamAudioDestinationNode* create(AudioContext&, size_t numberO fChannels);
65 MediaStream* stream() const; 65 MediaStream* stream() const;
66 66
67 private: 67 private:
68 MediaStreamAudioDestinationNode(AudioContext&, size_t numberOfChannels); 68 MediaStreamAudioDestinationNode(AudioContext&, size_t numberOfChannels);
69 }; 69 };
70 70
71 } // namespace blink 71 } // namespace blink
72 72
73 #endif // ENABLE(WEB_AUDIO) 73 #endif // ENABLE(WEB_AUDIO)
74 74
75 #endif // MediaStreamAudioDestinationNode_h 75 #endif // MediaStreamAudioDestinationNode_h
OLDNEW
« no previous file with comments | « Source/modules/webaudio/MediaElementAudioSourceNode.h ('k') | Source/modules/webaudio/MediaStreamAudioSourceNode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698