diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/indexeddb/idb_key.h')
-rw-r--r-- | chromium/third_party/blink/renderer/modules/indexeddb/idb_key.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/chromium/third_party/blink/renderer/modules/indexeddb/idb_key.h b/chromium/third_party/blink/renderer/modules/indexeddb/idb_key.h index 02f0da3fca8..98e8c1cb943 100644 --- a/chromium/third_party/blink/renderer/modules/indexeddb/idb_key.h +++ b/chromium/third_party/blink/renderer/modules/indexeddb/idb_key.h @@ -90,6 +90,10 @@ class MODULES_EXPORT IDBKey { static std::unique_ptr<IDBKey> Clone(const IDBKey* rkey); + // Disallow copy and assign. + IDBKey(const IDBKey&) = delete; + IDBKey& operator=(const IDBKey&) = delete; + ~IDBKey(); mojom::IDBKeyType GetType() const { return type_; } @@ -138,10 +142,8 @@ class MODULES_EXPORT IDBKey { std::unique_ptr<IDBKey> array_key); private: - DISALLOW_COPY_AND_ASSIGN(IDBKey); - IDBKey(); - IDBKey(mojom::IDBKeyType type); + explicit IDBKey(mojom::IDBKeyType type); IDBKey(mojom::IDBKeyType type, double number); explicit IDBKey(const String& value); explicit IDBKey(scoped_refptr<SharedBuffer> value); |