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

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

Issue 2466383004: blink: Cleanup class forward declarations (Closed)
Patch Set: Created 4 years, 1 month 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 AudioOutputDeviceClient_h 5 #ifndef AudioOutputDeviceClient_h
6 #define AudioOutputDeviceClient_h 6 #define AudioOutputDeviceClient_h
7 7
8 #include "core/frame/LocalFrame.h" 8 #include "core/frame/LocalFrame.h"
9 #include "modules/ModulesExport.h" 9 #include "modules/ModulesExport.h"
10 #include "platform/Supplementable.h" 10 #include "platform/Supplementable.h"
11 #include "public/platform/WebSetSinkIdCallbacks.h" 11 #include "public/platform/WebSetSinkIdCallbacks.h"
12 #include <memory> 12 #include <memory>
13 13
14 namespace blink { 14 namespace blink {
15 15
16 class ExecutionContext; 16 class ExecutionContext;
17 class WebString; 17 class WebString;
18 class ScriptState;
19 18
20 class MODULES_EXPORT AudioOutputDeviceClient : public Supplement<LocalFrame> { 19 class MODULES_EXPORT AudioOutputDeviceClient : public Supplement<LocalFrame> {
21 public: 20 public:
22 virtual ~AudioOutputDeviceClient() {} 21 virtual ~AudioOutputDeviceClient() {}
23 22
24 // Checks that a given sink exists and has permissions to be used from the 23 // Checks that a given sink exists and has permissions to be used from the
25 // origin of the current frame. 24 // origin of the current frame.
26 virtual void checkIfAudioSinkExistsAndIsAuthorized( 25 virtual void checkIfAudioSinkExistsAndIsAuthorized(
27 ExecutionContext*, 26 ExecutionContext*,
28 const WebString& sinkId, 27 const WebString& sinkId,
29 std::unique_ptr<WebSetSinkIdCallbacks>) = 0; 28 std::unique_ptr<WebSetSinkIdCallbacks>) = 0;
30 29
31 DECLARE_VIRTUAL_TRACE(); 30 DECLARE_VIRTUAL_TRACE();
32 31
33 // Supplement requirements. 32 // Supplement requirements.
34 static AudioOutputDeviceClient* from(ExecutionContext*); 33 static AudioOutputDeviceClient* from(ExecutionContext*);
35 static const char* supplementName(); 34 static const char* supplementName();
36 }; 35 };
37 36
38 MODULES_EXPORT void provideAudioOutputDeviceClientTo(LocalFrame&, 37 MODULES_EXPORT void provideAudioOutputDeviceClientTo(LocalFrame&,
39 AudioOutputDeviceClient*); 38 AudioOutputDeviceClient*);
40 39
41 } // namespace blink 40 } // namespace blink
42 41
43 #endif // AudioOutputDeviceClient_h 42 #endif // AudioOutputDeviceClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698