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

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/DynamicsCompressorNode.h

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 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 11 matching lines...) Expand all
22 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 22 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 */ 23 */
24 24
25 #ifndef DynamicsCompressorNode_h 25 #ifndef DynamicsCompressorNode_h
26 #define DynamicsCompressorNode_h 26 #define DynamicsCompressorNode_h
27 27
28 #include "base/gtest_prod_util.h" 28 #include "base/gtest_prod_util.h"
29 #include "modules/ModulesExport.h" 29 #include "modules/ModulesExport.h"
30 #include "modules/webaudio/AudioNode.h" 30 #include "modules/webaudio/AudioNode.h"
31 #include "modules/webaudio/AudioParam.h" 31 #include "modules/webaudio/AudioParam.h"
32 #include <memory> 32 #include "wtf/OwnPtr.h"
33 33
34 namespace blink { 34 namespace blink {
35 35
36 class AbstractAudioContext; 36 class AbstractAudioContext;
37 class DynamicsCompressor; 37 class DynamicsCompressor;
38 38
39 class MODULES_EXPORT DynamicsCompressorHandler final : public AudioHandler { 39 class MODULES_EXPORT DynamicsCompressorHandler final : public AudioHandler {
40 public: 40 public:
41 static PassRefPtr<DynamicsCompressorHandler> create( 41 static PassRefPtr<DynamicsCompressorHandler> create(
42 AudioNode&, 42 AudioNode&,
(...skipping 17 matching lines...) Expand all
60 AudioNode&, 60 AudioNode&,
61 float sampleRate, 61 float sampleRate,
62 AudioParamHandler& threshold, 62 AudioParamHandler& threshold,
63 AudioParamHandler& knee, 63 AudioParamHandler& knee,
64 AudioParamHandler& ratio, 64 AudioParamHandler& ratio,
65 AudioParamHandler& attack, 65 AudioParamHandler& attack,
66 AudioParamHandler& release); 66 AudioParamHandler& release);
67 double tailTime() const override; 67 double tailTime() const override;
68 double latencyTime() const override; 68 double latencyTime() const override;
69 69
70 std::unique_ptr<DynamicsCompressor> m_dynamicsCompressor; 70 OwnPtr<DynamicsCompressor> m_dynamicsCompressor;
71 RefPtr<AudioParamHandler> m_threshold; 71 RefPtr<AudioParamHandler> m_threshold;
72 RefPtr<AudioParamHandler> m_knee; 72 RefPtr<AudioParamHandler> m_knee;
73 RefPtr<AudioParamHandler> m_ratio; 73 RefPtr<AudioParamHandler> m_ratio;
74 float m_reduction; 74 float m_reduction;
75 RefPtr<AudioParamHandler> m_attack; 75 RefPtr<AudioParamHandler> m_attack;
76 RefPtr<AudioParamHandler> m_release; 76 RefPtr<AudioParamHandler> m_release;
77 77
78 FRIEND_TEST_ALL_PREFIXES(DynamicsCompressorNodeTest, ProcessorLifetime); 78 FRIEND_TEST_ALL_PREFIXES(DynamicsCompressorNodeTest, ProcessorLifetime);
79 }; 79 };
80 80
(...skipping 19 matching lines...) Expand all
100 Member<AudioParam> m_ratio; 100 Member<AudioParam> m_ratio;
101 Member<AudioParam> m_attack; 101 Member<AudioParam> m_attack;
102 Member<AudioParam> m_release; 102 Member<AudioParam> m_release;
103 103
104 FRIEND_TEST_ALL_PREFIXES(DynamicsCompressorNodeTest, ProcessorLifetime); 104 FRIEND_TEST_ALL_PREFIXES(DynamicsCompressorNodeTest, ProcessorLifetime);
105 }; 105 };
106 106
107 } // namespace blink 107 } // namespace blink
108 108
109 #endif // DynamicsCompressorNode_h 109 #endif // DynamicsCompressorNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698