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

Unified Diff: Source/modules/push_messaging/PushRegistration.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/modules/push_messaging/PushError.h ('k') | Source/modules/serviceworkers/ServiceWorker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/push_messaging/PushRegistration.h
diff --git a/Source/modules/push_messaging/PushRegistration.h b/Source/modules/push_messaging/PushRegistration.h
index 97be1e8c3e324962e23e53c1ce1d957a7ba39cb8..91cb1bbfac70065ae78913461c085479585b96a7 100644
--- a/Source/modules/push_messaging/PushRegistration.h
+++ b/Source/modules/push_messaging/PushRegistration.h
@@ -13,11 +13,13 @@
namespace WebCore {
+class NewScriptState;
+
class PushRegistration FINAL : public RefCountedWillBeGarbageCollectedFinalized<PushRegistration>, public ScriptWrappable {
public:
// For CallbackPromiseAdapter.
typedef blink::WebPushRegistration WebType;
- static PassRefPtrWillBeRawPtr<PushRegistration> from(WebType* registrationRaw)
+ static PassRefPtrWillBeRawPtr<PushRegistration> from(NewScriptState*, WebType* registrationRaw)
{
OwnPtr<WebType> registration = adoptPtr(registrationRaw);
return adoptRefWillBeNoop(new PushRegistration(registration->endpoint, registration->registrationId));
« no previous file with comments | « Source/modules/push_messaging/PushError.h ('k') | Source/modules/serviceworkers/ServiceWorker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698