diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/platform/wtf/doubly_linked_list.h')
-rw-r--r-- | chromium/third_party/blink/renderer/platform/wtf/doubly_linked_list.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/chromium/third_party/blink/renderer/platform/wtf/doubly_linked_list.h b/chromium/third_party/blink/renderer/platform/wtf/doubly_linked_list.h index 737499bde51..a85b55f94de 100644 --- a/chromium/third_party/blink/renderer/platform/wtf/doubly_linked_list.h +++ b/chromium/third_party/blink/renderer/platform/wtf/doubly_linked_list.h @@ -26,7 +26,6 @@ #ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_WTF_DOUBLY_LINKED_LIST_H_ #define THIRD_PARTY_BLINK_RENDERER_PLATFORM_WTF_DOUBLY_LINKED_LIST_H_ -#include "base/macros.h" #include "third_party/blink/renderer/platform/wtf/allocator/allocator.h" #include "third_party/blink/renderer/platform/wtf/wtf_size_t.h" @@ -79,6 +78,8 @@ class DoublyLinkedList { public: DoublyLinkedList(); + DoublyLinkedList(const DoublyLinkedList&) = delete; + DoublyLinkedList& operator=(const DoublyLinkedList&) = delete; bool IsEmpty() const; wtf_size_t size() const; // This is O(n). @@ -94,6 +95,9 @@ class DoublyLinkedList { void Remove(T*); struct AddResult { + STACK_ALLOCATED(); + + public: T* node; bool is_new_entry; @@ -121,8 +125,6 @@ class DoublyLinkedList { protected: PointerType head_; PointerType tail_; - - DISALLOW_COPY_AND_ASSIGN(DoublyLinkedList); }; template <typename T, typename PointerType> |