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

Unified Diff: Source/modules/bluetooth/BluetoothError.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
« no previous file with comments | « Source/modules/background_sync/SyncError.h ('k') | Source/modules/bluetooth/BluetoothSupplement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/bluetooth/BluetoothError.h
diff --git a/Source/modules/bluetooth/BluetoothError.h b/Source/modules/bluetooth/BluetoothError.h
index 91286ca6a54192b170e292406202f2782dde51d8..6fcf7de19542a5afef873db37475ad97c7869456 100644
--- a/Source/modules/bluetooth/BluetoothError.h
+++ b/Source/modules/bluetooth/BluetoothError.h
@@ -7,6 +7,7 @@
#include "platform/heap/Handle.h"
#include "public/platform/modules/bluetooth/WebBluetoothError.h"
+#include "wtf/Allocator.h"
namespace blink {
@@ -16,14 +17,11 @@ class ScriptPromiseResolver;
// BluetoothError is used with CallbackPromiseAdapter to receive
// WebBluetoothError responses. See CallbackPromiseAdapter class comments.
class BluetoothError {
- WTF_MAKE_NONCOPYABLE(BluetoothError);
+ STATIC_ONLY(BluetoothError);
public:
// Interface required by CallbackPromiseAdapter:
using WebType = const WebBluetoothError&;
static DOMException* take(ScriptPromiseResolver*, const WebBluetoothError&);
-
-private:
- BluetoothError() = delete;
};
} // namespace blink
« no previous file with comments | « Source/modules/background_sync/SyncError.h ('k') | Source/modules/bluetooth/BluetoothSupplement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698