Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / modules / webmidi / MIDIAccessInitializer.h
index efbe7a0..e6ef5bf 100644 (file)
@@ -9,7 +9,6 @@
 #include "bindings/core/v8/ScriptPromiseResolver.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"
@@ -17,6 +16,7 @@
 namespace blink {
 
 class MIDIAccess;
+class MIDIOptions;
 class Navigator;
 class ScriptState;
 
@@ -53,7 +53,7 @@ public:
     virtual void didStartSession(bool success, const String& error, const String& message) OVERRIDE;
     virtual void didReceiveMIDIData(unsigned portIndex, const unsigned char* data, size_t length, double timeStamp) OVERRIDE { }
 
-    void setSysexEnabled(bool value);
+    void resolveSysexPermission(bool allowed);
     SecurityOrigin* securityOrigin() const;
 
 private:
@@ -64,8 +64,7 @@ private:
     ExecutionContext* executionContext() const;
 
     OwnPtr<MIDIAccessor> m_accessor;
-    MIDIOptions m_options;
-    bool m_sysexEnabled;
+    bool m_requestSysex;
     Vector<PortDescriptor> m_portDescriptors;
 };