Index: Source/modules/serviceworkers/ServiceWorkerError.cpp |
diff --git a/Source/core/html/HTMLMediaSource.cpp b/Source/modules/serviceworkers/ServiceWorkerError.cpp |
similarity index 84% |
copy from Source/core/html/HTMLMediaSource.cpp |
copy to Source/modules/serviceworkers/ServiceWorkerError.cpp |
index 7221cfeaf34ed4e40fd174029a3fa66a6d8dd411..9e927a0d6cad84cf21eaa8911ab1c21031ec0e72 100644 |
--- a/Source/core/html/HTMLMediaSource.cpp |
+++ b/Source/modules/serviceworkers/ServiceWorkerError.cpp |
@@ -29,16 +29,19 @@ |
*/ |
#include "config.h" |
-#include "core/html/HTMLMediaSource.h" |
+#include "ServiceWorkerError.h" |
+using WebKit::WebServiceWorkerError; |
abarth-chromium
2013/10/25 15:37:16
Why do you have this using directive and then use
alecflett
2013/10/25 23:05:33
Done. (oops, oversight)
|
namespace WebCore { |
-URLRegistry* HTMLMediaSource::s_registry = 0; |
- |
-void HTMLMediaSource::setRegistry(URLRegistry* registry) |
+String ServiceWorkerError::getErrorString(WebKit::WebServiceWorkerError::ErrorType type) |
{ |
- ASSERT(!s_registry); |
- s_registry = registry; |
+ switch (type) { |
+ case WebServiceWorkerError::DisabledError: |
+ return "DisabledError"; |
+ default: |
+ ASSERT_NOT_REACHED(); |
+ } |
} |
} |