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

Unified Diff: Source/modules/webmidi/MIDIErrorCallback.h

Issue 14423002: Web MIDI: implement MIDIErrorCallback (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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: Source/modules/webmidi/MIDIErrorCallback.h
diff --git a/Source/modules/quota/StorageQuotaCallback.h b/Source/modules/webmidi/MIDIErrorCallback.h
similarity index 78%
copy from Source/modules/quota/StorageQuotaCallback.h
copy to Source/modules/webmidi/MIDIErrorCallback.h
index 491452b4d1f8b91d162f031b59e7999453f08637..7a3104424156ab2937d26598ceb4badd2f324cbb 100644
--- a/Source/modules/quota/StorageQuotaCallback.h
+++ b/Source/modules/webmidi/MIDIErrorCallback.h
@@ -28,19 +28,27 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef StorageQuotaCallback_h
-#define StorageQuotaCallback_h
+#ifndef MIDIErrorCallback_h
+#define MIDIErrorCallback_h
+#include <wtf/PassRefPtr.h>
#include <wtf/RefCounted.h>
namespace WebCore {
-class StorageQuotaCallback : public RefCounted<StorageQuotaCallback> {
+class DOMError;
+class ScriptExecutionContext;
+class SecurityExecutionContext;
Chris Rogers 2013/04/23 20:35:23 seems like SecurityExecutionContext is not needed
Takashi Toyoshima 2013/04/24 01:31:51 Done.
+
+class MIDIErrorCallback : public RefCounted<MIDIErrorCallback> {
public:
- virtual ~StorageQuotaCallback() { }
- virtual bool handleEvent(unsigned long long grantedQuotaInBytes) = 0;
+ virtual ~MIDIErrorCallback() { }
+ virtual bool handleEvent(DOMError*) = 0;
+
+ // Helper to post callback task.
+ void scheduleCallback(ScriptExecutionContext*, PassRefPtr<DOMError>);
};
} // namespace
-#endif // StorageQuotaCallback_h
+#endif // MIDIErrorCallback_h

Powered by Google App Engine
This is Rietveld 408576698