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

Unified Diff: Source/bindings/v8/ExceptionStatePlaceholder.cpp

Issue 18398002: Remove IDBNotFoundError ExceptionCode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: Source/bindings/v8/ExceptionStatePlaceholder.cpp
diff --git a/Source/modules/quota/StorageErrorCallback.cpp b/Source/bindings/v8/ExceptionStatePlaceholder.cpp
similarity index 77%
copy from Source/modules/quota/StorageErrorCallback.cpp
copy to Source/bindings/v8/ExceptionStatePlaceholder.cpp
index edb16d2f42b1bef9b7267b53cac462aab4616aae..352ba0090db1518753306a414e908683fd361773 100644
--- a/Source/modules/quota/StorageErrorCallback.cpp
+++ b/Source/bindings/v8/ExceptionStatePlaceholder.cpp
@@ -29,24 +29,27 @@
*/
#include "config.h"
+#include "bindings/v8/ExceptionStatePlaceholder.h"
-#include "modules/quota/StorageErrorCallback.h"
+namespace WebCore {
-#include "core/dom/DOMException.h"
+#if !ASSERT_DISABLED
-namespace WebCore {
+NoExceptionStateAssertionChecker::NoExceptionStateAssertionChecker(const char* file, int line)
+ : ExceptionState(0)
+ , m_file(file)
+ , m_line(line) { }
-StorageErrorCallback::CallbackTask::CallbackTask(PassRefPtr<StorageErrorCallback> callback, ExceptionCode ec)
- : m_callback(callback)
- , m_ec(ec)
+void NoExceptionStateAssertionChecker::throwDOMException(const ExceptionCode&, const char*)
{
+ ASSERT_AT(false, m_file, m_line, "");
}
-void StorageErrorCallback::CallbackTask::performTask(ScriptExecutionContext*)
+void NoExceptionStateAssertionChecker::throwTypeError(const char*)
{
- if (!m_callback)
- return;
- m_callback->handleEvent(DOMException::create(m_ec).get());
+ ASSERT_AT(false, m_file, m_line, "");
}
+#endif
+
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698