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

Side by Side Diff: third_party/WebKit/Source/modules/audio_output_devices/AudioOutputDeviceClientImpl.h

Issue 2863913002: Change AudioOutputDeviceClientImpl to use WebLocalFrameBase and move to modules. (Closed)
Patch Set: Use chrome client to create instances of WebLocalFrameBase. Created 3 years, 7 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 <memory>
9 #include "modules/ModulesExport.h"
8 #include "modules/audio_output_devices/AudioOutputDeviceClient.h" 10 #include "modules/audio_output_devices/AudioOutputDeviceClient.h"
9 #include "platform/heap/Handle.h" 11 #include "platform/heap/Handle.h"
10 #include <memory>
11 12
12 namespace blink { 13 namespace blink {
13 14
14 class AudioOutputDeviceClientImpl 15 class MODULES_EXPORT AudioOutputDeviceClientImpl
15 : public GarbageCollectedFinalized<AudioOutputDeviceClientImpl>, 16 : public GarbageCollectedFinalized<AudioOutputDeviceClientImpl>,
16 public AudioOutputDeviceClient { 17 public AudioOutputDeviceClient {
17 USING_GARBAGE_COLLECTED_MIXIN(AudioOutputDeviceClientImpl); 18 USING_GARBAGE_COLLECTED_MIXIN(AudioOutputDeviceClientImpl);
18 WTF_MAKE_NONCOPYABLE(AudioOutputDeviceClientImpl); 19 WTF_MAKE_NONCOPYABLE(AudioOutputDeviceClientImpl);
19 20
20 public: 21 public:
21 explicit AudioOutputDeviceClientImpl(LocalFrame&); 22 explicit AudioOutputDeviceClientImpl(LocalFrame&);
22 23
23 ~AudioOutputDeviceClientImpl() override; 24 ~AudioOutputDeviceClientImpl() override;
24 25
25 // AudioOutputDeviceClient implementation. 26 // AudioOutputDeviceClient implementation.
26 void CheckIfAudioSinkExistsAndIsAuthorized( 27 void CheckIfAudioSinkExistsAndIsAuthorized(
27 ExecutionContext*, 28 ExecutionContext*,
28 const WebString& sink_id, 29 const WebString& sink_id,
29 std::unique_ptr<WebSetSinkIdCallbacks>) override; 30 std::unique_ptr<WebSetSinkIdCallbacks>) override;
30 31
31 // GarbageCollectedFinalized implementation. 32 // GarbageCollectedFinalized implementation.
32 DEFINE_INLINE_VIRTUAL_TRACE() { AudioOutputDeviceClient::Trace(visitor); } 33 DEFINE_INLINE_VIRTUAL_TRACE() { AudioOutputDeviceClient::Trace(visitor); }
33 34
34 private: 35 private:
35 AudioOutputDeviceClientImpl(); 36 AudioOutputDeviceClientImpl();
36 }; 37 };
37 38
38 } // namespace blink 39 } // namespace blink
39 40
40 #endif // AudioOutputDeviceClientImpl_h 41 #endif // AudioOutputDeviceClientImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698