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

Unified Diff: Source/modules/serviceworkers/ServiceWorkerError.cpp

Issue 27278002: Add an Error class for ServiceWorkers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix windows Created 7 years, 1 month 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/serviceworkers/ServiceWorkerError.cpp
diff --git a/Source/platform/audio/AudioDSPKernel.cpp b/Source/modules/serviceworkers/ServiceWorkerError.cpp
similarity index 83%
copy from Source/platform/audio/AudioDSPKernel.cpp
copy to Source/modules/serviceworkers/ServiceWorkerError.cpp
index 553ac05737a7b7e6631d9ea9ff3a2f2f5392e115..61572c6ec3fa11be01455a6d57e40b785b0a1b97 100644
--- a/Source/platform/audio/AudioDSPKernel.cpp
+++ b/Source/modules/serviceworkers/ServiceWorkerError.cpp
@@ -29,12 +29,20 @@
*/
#include "config.h"
-#include "platform/audio/AudioDSPKernel.h"
+#include "ServiceWorkerError.h"
+using WebKit::WebServiceWorkerError;
namespace WebCore {
-AudioDSPKernel::~AudioDSPKernel()
+String ServiceWorkerError::errorString(WebServiceWorkerError::ErrorType type)
{
+ switch (type) {
+ case WebServiceWorkerError::DisabledError:
+ return "DisabledError";
+ default:
+ ASSERT_NOT_REACHED();
+ }
+ return String();
}
}
« no previous file with comments | « Source/modules/serviceworkers/ServiceWorkerError.h ('k') | Tools/Scripts/webkitpy/layout_tests/port/base.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698