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

Side by Side Diff: third_party/WebKit/Source/web/AudioOutputDeviceClientImpl.h

Issue 2150443002: Supplement should have a Member to the corresponding Supplementable object (Part 1) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: temp Created 4 years, 3 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> 10 #include <memory>
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class LocalFrame;
15
14 class AudioOutputDeviceClientImpl : public GarbageCollectedFinalized<AudioOutput DeviceClientImpl>, public AudioOutputDeviceClient { 16 class AudioOutputDeviceClientImpl : public GarbageCollectedFinalized<AudioOutput DeviceClientImpl>, public AudioOutputDeviceClient {
15 USING_GARBAGE_COLLECTED_MIXIN(AudioOutputDeviceClientImpl); 17 USING_GARBAGE_COLLECTED_MIXIN(AudioOutputDeviceClientImpl);
16 WTF_MAKE_NONCOPYABLE(AudioOutputDeviceClientImpl); 18 WTF_MAKE_NONCOPYABLE(AudioOutputDeviceClientImpl);
17 public: 19 public:
18 static AudioOutputDeviceClientImpl* create(); 20 static AudioOutputDeviceClientImpl* create(LocalFrame&);
19 21
20 ~AudioOutputDeviceClientImpl() override; 22 ~AudioOutputDeviceClientImpl() override;
21 23
22 // AudioOutputDeviceClient implementation. 24 // AudioOutputDeviceClient implementation.
23 void checkIfAudioSinkExistsAndIsAuthorized(ExecutionContext*, const WebStrin g& sinkId, std::unique_ptr<WebSetSinkIdCallbacks>) override; 25 void checkIfAudioSinkExistsAndIsAuthorized(ExecutionContext*, const WebStrin g& sinkId, std::unique_ptr<WebSetSinkIdCallbacks>) override;
24 26
25 // GarbageCollectedFinalized implementation. 27 // GarbageCollectedFinalized implementation.
26 DEFINE_INLINE_VIRTUAL_TRACE() { AudioOutputDeviceClient::trace(visitor); } 28 DEFINE_INLINE_VIRTUAL_TRACE() { AudioOutputDeviceClient::trace(visitor); }
27 29
28 private: 30 private:
29 AudioOutputDeviceClientImpl(); 31 explicit AudioOutputDeviceClientImpl(LocalFrame&);
30 }; 32 };
31 33
32 } // namespace blink 34 } // namespace blink
33 35
34 #endif // AudioOutputDeviceClientImpl_h 36 #endif // AudioOutputDeviceClientImpl_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/Supplementable.h ('k') | third_party/WebKit/Source/web/AudioOutputDeviceClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698