| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef PersistentNode_h | 5 #ifndef PersistentNode_h |
| 6 #define PersistentNode_h | 6 #define PersistentNode_h |
| 7 | 7 |
| 8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
| 9 #include "platform/heap/ThreadState.h" | 9 #include "platform/heap/ThreadState.h" |
| 10 #include "wtf/Allocator.h" | 10 #include "wtf/Allocator.h" |
| 11 #include "wtf/Assertions.h" | 11 #include "wtf/Assertions.h" |
| 12 #include "wtf/MainThread.h" | |
| 13 #include "wtf/ThreadingPrimitives.h" | 12 #include "wtf/ThreadingPrimitives.h" |
| 14 | 13 |
| 15 namespace blink { | 14 namespace blink { |
| 16 | 15 |
| 17 class CrossThreadPersistentRegion; | 16 class CrossThreadPersistentRegion; |
| 18 | 17 |
| 19 class PersistentNode final { | 18 class PersistentNode final { |
| 20 DISALLOW_NEW(); | 19 DISALLOW_NEW(); |
| 21 public: | 20 public: |
| 22 PersistentNode() | 21 PersistentNode() |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 // We don't make CrossThreadPersistentRegion inherit from PersistentRegion | 192 // We don't make CrossThreadPersistentRegion inherit from PersistentRegion |
| 194 // because we don't want to virtualize performance-sensitive methods | 193 // because we don't want to virtualize performance-sensitive methods |
| 195 // such as PersistentRegion::allocate/freePersistentNode. | 194 // such as PersistentRegion::allocate/freePersistentNode. |
| 196 OwnPtr<PersistentRegion> m_persistentRegion; | 195 OwnPtr<PersistentRegion> m_persistentRegion; |
| 197 Mutex m_mutex; | 196 Mutex m_mutex; |
| 198 }; | 197 }; |
| 199 | 198 |
| 200 } // namespace blink | 199 } // namespace blink |
| 201 | 200 |
| 202 #endif | 201 #endif |
| OLD | NEW |