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

Unified Diff: Source/modules/push_messaging/PushError.h

Issue 236133002: Pass script state to Web API object->script wrappable converter. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Also pass script state to "from" for error types. Created 6 years, 8 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
« no previous file with comments | « Source/bindings/v8/CallbackPromiseAdapter.h ('k') | Source/modules/push_messaging/PushRegistration.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/push_messaging/PushError.h
diff --git a/Source/modules/push_messaging/PushError.h b/Source/modules/push_messaging/PushError.h
index 667eb923afc706f613aa3ab8539df8994f928c3e..7840cc08696ada8e0e7697d0031b5ca6b092db58 100644
--- a/Source/modules/push_messaging/PushError.h
+++ b/Source/modules/push_messaging/PushError.h
@@ -12,12 +12,14 @@
namespace WebCore {
+class NewScriptState;
+
class PushError {
WTF_MAKE_NONCOPYABLE(PushError);
public:
// For CallbackPromiseAdapter.
typedef blink::WebPushError WebType;
- static PassRefPtrWillBeRawPtr<DOMError> from(WebType* webErrorRaw)
+ static PassRefPtrWillBeRawPtr<DOMError> from(NewScriptState*, WebType* webErrorRaw)
{
OwnPtr<WebType> webError = adoptPtr(webErrorRaw);
RefPtrWillBeRawPtr<DOMError> error = DOMError::create(errorString(webError->errorType), webError->message);
« no previous file with comments | « Source/bindings/v8/CallbackPromiseAdapter.h ('k') | Source/modules/push_messaging/PushRegistration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698