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

Unified Diff: third_party/WebKit/Source/modules/background_sync/SyncError.h

Issue 2481393002: [background-sync] Remove WebSyncError and SyncCallbacks (Closed)
Patch Set: Rebase Created 4 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: third_party/WebKit/Source/modules/background_sync/SyncError.h
diff --git a/third_party/WebKit/Source/modules/background_sync/SyncError.h b/third_party/WebKit/Source/modules/background_sync/SyncError.h
index d0bac744493e9ed2735317f9f0f142c955d948d9..c908f540780d050b8d76c1ee8f82de8b742c52a3 100644
--- a/third_party/WebKit/Source/modules/background_sync/SyncError.h
+++ b/third_party/WebKit/Source/modules/background_sync/SyncError.h
@@ -6,19 +6,28 @@
#define SyncError_h
#include "core/dom/DOMException.h"
-#include "platform/heap/Handle.h"
-#include "public/platform/modules/background_sync/WebSyncError.h"
-#include "wtf/Allocator.h"
namespace blink {
class ScriptPromiseResolver;
class SyncError {
jbroman 2016/11/18 16:53:32 Is this class still useful? It seems to just be a
adithyas 2016/11/18 20:05:00 +1, I'll get rid of it. Now that I look at it agai
- STATIC_ONLY(SyncError);
-
public:
- static DOMException* take(ScriptPromiseResolver*, const WebSyncError&);
+ enum ErrorType {
+ ErrorTypeAbort = 0,
+ ErrorTypeNoPermission,
+ ErrorTypeNotFound,
+ ErrorTypePermissionDenied,
+ ErrorTypeUnknown,
+ ErrorTypeLast = ErrorTypeUnknown
+ };
+
+ SyncError(ErrorType, const String&);
+
+ static DOMException* take(ScriptPromiseResolver*, const SyncError&);
+
+ ErrorType m_errorType;
+ String m_message;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698