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

Unified Diff: third_party/WebKit/Source/modules/webmidi/MIDIAccessInitializer.h

Issue 1602703005: Web MIDI: Ask permissions of the content layer always (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert layout_test_message_filter.cc that should be in the next CL Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/webmidi/MIDIAccessInitializer.h
diff --git a/third_party/WebKit/Source/modules/webmidi/MIDIAccessInitializer.h b/third_party/WebKit/Source/modules/webmidi/MIDIAccessInitializer.h
index 668d994356cd9ceaab19e506f49063b43f15c340..dd0cc7c732e807932f0272955172062022ed16e8 100644
--- a/third_party/WebKit/Source/modules/webmidi/MIDIAccessInitializer.h
+++ b/third_party/WebKit/Source/modules/webmidi/MIDIAccessInitializer.h
@@ -10,13 +10,13 @@
#include "modules/ModulesExport.h"
#include "modules/webmidi/MIDIAccessor.h"
#include "modules/webmidi/MIDIAccessorClient.h"
+#include "modules/webmidi/MIDIOptions.h"
#include "modules/webmidi/MIDIPort.h"
#include "wtf/OwnPtr.h"
#include "wtf/Vector.h"
namespace blink {
-class MIDIOptions;
class ScriptState;
class MODULES_EXPORT MIDIAccessInitializer : public ScriptPromiseResolver, public MIDIAccessorClient {
@@ -61,7 +61,7 @@ public:
void didStartSession(bool success, const String& error, const String& message) override;
void didReceiveMIDIData(unsigned portIndex, const unsigned char* data, size_t length, double timeStamp) override { }
- void resolveSysexPermission(bool allowed);
+ void resolvePermission(bool allowed);
SecurityOrigin* securityOrigin() const;
private:
@@ -75,9 +75,9 @@ private:
OwnPtr<MIDIAccessor> m_accessor;
Vector<PortDescriptor> m_portDescriptors;
- bool m_requestSysex;
+ MIDIOptions m_options;
bool m_hasBeenDisposed;
- bool m_sysexPermissionResolved;
+ bool m_permissionResolved;
};
} // namespace blink
« no previous file with comments | « content/renderer/media/midi_dispatcher.cc ('k') | third_party/WebKit/Source/modules/webmidi/MIDIAccessInitializer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698