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

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerError.h

Issue 2054203002: service worker: Fix the type of an update promise reject value (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: FIXME => TODO Created 4 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: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerError.h
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerError.h b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerError.h
index c2054d7b60b392b6ab4dd7c7d348a73e9647380f..e7e1cf45540c421efc10345f9dd5a01c7515ad6c 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerError.h
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerError.h
@@ -36,6 +36,8 @@
#include "wtf/OwnPtr.h"
#include "wtf/PassOwnPtr.h"
+#include <v8.h>
+
namespace blink {
class DOMException;
@@ -49,6 +51,13 @@ public:
static DOMException* take(ScriptPromiseResolver*, const WebServiceWorkerError& webError);
};
+class ServiceWorkerErrorForUpdate : public ServiceWorkerError {
+ STATIC_ONLY(ServiceWorkerErrorForUpdate);
+public:
+ // For CallbackPromiseAdapter
+ static v8::Local<v8::Value> take(ScriptPromiseResolver* resolver, const WebServiceWorkerError& webError);
+};
+
} // namespace blink
#endif // ServiceWorkerError_h

Powered by Google App Engine
This is Rietveld 408576698