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

Unified Diff: public/platform/WebServiceWorkerError.h

Issue 27278002: Add an Error class for ServiceWorkers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: enum for error type, document ownership Created 7 years, 2 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: public/platform/WebServiceWorkerError.h
diff --git a/public/web/WebDOMProgressEvent.h b/public/platform/WebServiceWorkerError.h
similarity index 82%
copy from public/web/WebDOMProgressEvent.h
copy to public/platform/WebServiceWorkerError.h
index d8db15587695dfe4141eceb164456da9a03342a5..084510723bd4b23b875b65305903b824b87696ce 100644
--- a/public/web/WebDOMProgressEvent.h
+++ b/public/platform/WebServiceWorkerError.h
@@ -28,19 +28,21 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebDOMProgressEvent_h
-#define WebDOMProgressEvent_h
+#ifndef WebServiceWorkerError_h
+#define WebServiceWorkerError_h
-#include "WebDOMEvent.h"
+#include "WebString.h"
namespace WebKit {
-class WebString;
-
-class WebDOMProgressEvent : public WebDOMEvent {
+class WebServiceWorkerError {
public:
- WebDOMProgressEvent() { }
- BLINK_EXPORT WebDOMProgressEvent(const WebString& type, bool lengthIsComputable, unsigned long long loaded, unsigned long long total);
+ enum ErrorType {
+ RegistrationError = 0,
+ };
+ virtual ~WebServiceWorkerError() { };
+ ErrorType errorType() { return RegistrationError; }
+ virtual const WebString message() { return WebString(); }
kinuko 2013/10/15 23:44:44 Do we want to have implementation of this interfac
};
} // namespace WebKit

Powered by Google App Engine
This is Rietveld 408576698