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

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

Issue 2141493002: Add missing traces for Supplement<> classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: temp Created 4 years, 5 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 AudioOutputDeviceClient_h 5 #ifndef AudioOutputDeviceClient_h
6 #define AudioOutputDeviceClient_h 6 #define AudioOutputDeviceClient_h
7 7
8 #include "core/frame/LocalFrame.h"
8 #include "modules/ModulesExport.h" 9 #include "modules/ModulesExport.h"
9 #include "platform/Supplementable.h" 10 #include "platform/Supplementable.h"
10 #include "public/platform/WebSetSinkIdCallbacks.h" 11 #include "public/platform/WebSetSinkIdCallbacks.h"
11 #include <memory> 12 #include <memory>
12 13
13 namespace blink { 14 namespace blink {
14 15
15 class ExecutionContext; 16 class ExecutionContext;
16 class LocalFrame;
17 class WebString; 17 class WebString;
18 class ScriptState; 18 class ScriptState;
19 19
20 class AudioOutputDeviceClient : public Supplement<LocalFrame> { 20 class MODULES_EXPORT AudioOutputDeviceClient : public Supplement<LocalFrame> {
21 public: 21 public:
22 virtual ~AudioOutputDeviceClient() {} 22 virtual ~AudioOutputDeviceClient() {}
23 23
24 // Checks that a given sink exists and has permissions to be used from the o rigin of the current frame. 24 // Checks that a given sink exists and has permissions to be used from the o rigin of the current frame.
25 virtual void checkIfAudioSinkExistsAndIsAuthorized(ExecutionContext*, const WebString& sinkId, std::unique_ptr<WebSetSinkIdCallbacks>) = 0; 25 virtual void checkIfAudioSinkExistsAndIsAuthorized(ExecutionContext*, const WebString& sinkId, std::unique_ptr<WebSetSinkIdCallbacks>) = 0;
26 26
27 DECLARE_VIRTUAL_TRACE();
28
27 // Supplement requirements. 29 // Supplement requirements.
28 static AudioOutputDeviceClient* from(ExecutionContext*); 30 static AudioOutputDeviceClient* from(ExecutionContext*);
29 static const char* supplementName(); 31 static const char* supplementName();
30 }; 32 };
31 33
32 MODULES_EXPORT void provideAudioOutputDeviceClientTo(LocalFrame&, AudioOutputDev iceClient*); 34 MODULES_EXPORT void provideAudioOutputDeviceClientTo(LocalFrame&, AudioOutputDev iceClient*);
33 35
34 } // namespace blink 36 } // namespace blink
35 37
36 #endif // AudioOutputDeviceClient_h 38 #endif // AudioOutputDeviceClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698