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

Unified Diff: Source/modules/background_sync/SyncCallbacks.h

Issue 1315743003: [part 1] Make classes and structures in modules/ fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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: Source/modules/background_sync/SyncCallbacks.h
diff --git a/Source/modules/background_sync/SyncCallbacks.h b/Source/modules/background_sync/SyncCallbacks.h
index 23a5bbcaaa9d89d98bbb311585b5e3887567100e..54837013b618754514676cbc486eef3b5d4c08b9 100644
--- a/Source/modules/background_sync/SyncCallbacks.h
+++ b/Source/modules/background_sync/SyncCallbacks.h
@@ -27,6 +27,9 @@ class WebString;
// will pass it to the SyncRegistration.
class SyncRegistrationCallbacks final : public WebSyncRegistrationCallbacks {
WTF_MAKE_NONCOPYABLE(SyncRegistrationCallbacks);
+ // FIXME(tasak): when making public/platform classes to use PartitionAlloc,
+ // the following macro should be moved to WebCallbacks defined in public/platformWebCallbacks.h.
+ WTF_MAKE_FAST_ALLOCATED(SyncRegistrationCallbacks);
public:
SyncRegistrationCallbacks(ScriptPromiseResolver*, ServiceWorkerRegistration*);
~SyncRegistrationCallbacks() override;
@@ -46,6 +49,9 @@ private:
// SyncProvider.
class SyncNotifyWhenDoneCallbacks final : public WebSyncNotifyWhenDoneCallbacks {
WTF_MAKE_NONCOPYABLE(SyncNotifyWhenDoneCallbacks);
+ // FIXME(tasak): when making public/platform classes to use PartitionAlloc,
+ // the following macro should be moved to WebCallbacks defined in public/platformWebCallbacks.h.
+ WTF_MAKE_FAST_ALLOCATED(SyncNotifyWhenDoneCallbacks);
public:
SyncNotifyWhenDoneCallbacks(ScriptPromiseResolver*, ServiceWorkerRegistration*);
~SyncNotifyWhenDoneCallbacks() override;
@@ -65,6 +71,9 @@ private:
// SyncProvider.
class SyncUnregistrationCallbacks final : public WebSyncUnregistrationCallbacks {
WTF_MAKE_NONCOPYABLE(SyncUnregistrationCallbacks);
+ // FIXME(tasak): when making public/platform classes to use PartitionAlloc,
+ // the following macro should be moved to WebCallbacks defined in public/platformWebCallbacks.h.
+ WTF_MAKE_FAST_ALLOCATED(SyncUnregistrationCallbacks);
public:
SyncUnregistrationCallbacks(ScriptPromiseResolver*, ServiceWorkerRegistration*);
~SyncUnregistrationCallbacks() override;
@@ -83,6 +92,9 @@ private:
// will pass it to the SyncRegistration.
class SyncGetRegistrationsCallbacks final : public WebSyncGetRegistrationsCallbacks {
WTF_MAKE_NONCOPYABLE(SyncGetRegistrationsCallbacks);
+ // FIXME(tasak): when making public/platform classes to use PartitionAlloc,
+ // the following macro should be moved to WebCallbacks defined in public/platformWebCallbacks.h.
+ WTF_MAKE_FAST_ALLOCATED(SyncGetRegistrationsCallbacks);
public:
SyncGetRegistrationsCallbacks(ScriptPromiseResolver*, ServiceWorkerRegistration*);
~SyncGetRegistrationsCallbacks() override;
@@ -100,6 +112,7 @@ private:
// depending on the permission status passed to the callback.
class SyncGetPermissionStatusCallbacks final : public WebSyncGetPermissionStatusCallbacks {
WTF_MAKE_NONCOPYABLE(SyncGetPermissionStatusCallbacks);
+ WTF_MAKE_FAST_ALLOCATED(SyncGetPermissionStatusCallbacks);
public:
SyncGetPermissionStatusCallbacks(ScriptPromiseResolver*, ServiceWorkerRegistration*);
~SyncGetPermissionStatusCallbacks() override;
« no previous file with comments | « Source/modules/audio_output_devices/SetSinkIdCallbacks.h ('k') | Source/modules/background_sync/SyncError.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698