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 |