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

Side by Side Diff: third_party/WebKit/Source/web/AudioOutputDeviceClientImpl.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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef AudioOutputDeviceClientImpl_h 5 #ifndef AudioOutputDeviceClientImpl_h
6 #define AudioOutputDeviceClientImpl_h 6 #define AudioOutputDeviceClientImpl_h
7 7
8 #include "modules/audio_output_devices/AudioOutputDeviceClient.h" 8 #include "modules/audio_output_devices/AudioOutputDeviceClient.h"
9 #include "platform/heap/Handle.h" 9 #include "platform/heap/Handle.h"
10 #include <memory>
11 10
12 namespace blink { 11 namespace blink {
13 12
14 class AudioOutputDeviceClientImpl : public GarbageCollectedFinalized<AudioOutput DeviceClientImpl>, public AudioOutputDeviceClient { 13 class AudioOutputDeviceClientImpl : public GarbageCollectedFinalized<AudioOutput DeviceClientImpl>, public AudioOutputDeviceClient {
15 USING_GARBAGE_COLLECTED_MIXIN(AudioOutputDeviceClientImpl); 14 USING_GARBAGE_COLLECTED_MIXIN(AudioOutputDeviceClientImpl);
16 WTF_MAKE_NONCOPYABLE(AudioOutputDeviceClientImpl); 15 WTF_MAKE_NONCOPYABLE(AudioOutputDeviceClientImpl);
17 public: 16 public:
18 static AudioOutputDeviceClientImpl* create(); 17 static AudioOutputDeviceClientImpl* create();
19 18
20 ~AudioOutputDeviceClientImpl() override; 19 ~AudioOutputDeviceClientImpl() override;
21 20
22 // AudioOutputDeviceClient implementation. 21 // AudioOutputDeviceClient implementation.
23 void checkIfAudioSinkExistsAndIsAuthorized(ExecutionContext*, const WebStrin g& sinkId, std::unique_ptr<WebSetSinkIdCallbacks>) override; 22 void checkIfAudioSinkExistsAndIsAuthorized(ExecutionContext*, const WebStrin g& sinkId, PassOwnPtr<WebSetSinkIdCallbacks>) override;
24 23
25 // GarbageCollectedFinalized implementation. 24 // GarbageCollectedFinalized implementation.
26 DEFINE_INLINE_VIRTUAL_TRACE() { AudioOutputDeviceClient::trace(visitor); } 25 DEFINE_INLINE_VIRTUAL_TRACE() { AudioOutputDeviceClient::trace(visitor); }
27 26
28 private: 27 private:
29 AudioOutputDeviceClientImpl(); 28 AudioOutputDeviceClientImpl();
30 }; 29 };
31 30
32 } // namespace blink 31 } // namespace blink
33 32
34 #endif // AudioOutputDeviceClientImpl_h 33 #endif // AudioOutputDeviceClientImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698