| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 #include "platform/heap/InlinedGlobalMarkingVisitor.h" | 36 #include "platform/heap/InlinedGlobalMarkingVisitor.h" |
| 37 #include "platform/heap/PersistentNode.h" | 37 #include "platform/heap/PersistentNode.h" |
| 38 #include "platform/heap/ThreadState.h" | 38 #include "platform/heap/ThreadState.h" |
| 39 #include "platform/heap/TraceTraits.h" | 39 #include "platform/heap/TraceTraits.h" |
| 40 #include "platform/heap/Visitor.h" | 40 #include "platform/heap/Visitor.h" |
| 41 #include "wtf/Allocator.h" | 41 #include "wtf/Allocator.h" |
| 42 #include "wtf/Atomics.h" | 42 #include "wtf/Atomics.h" |
| 43 #include "wtf/Functional.h" | 43 #include "wtf/Functional.h" |
| 44 #include "wtf/HashFunctions.h" | 44 #include "wtf/HashFunctions.h" |
| 45 #include "wtf/Locker.h" | 45 #include "wtf/Locker.h" |
| 46 #include "wtf/MainThread.h" | |
| 47 #include "wtf/RawPtr.h" | 46 #include "wtf/RawPtr.h" |
| 48 #include "wtf/RefCounted.h" | 47 #include "wtf/RefCounted.h" |
| 49 #include "wtf/TypeTraits.h" | 48 #include "wtf/TypeTraits.h" |
| 50 | 49 |
| 51 #if defined(LEAK_SANITIZER) | 50 #if defined(LEAK_SANITIZER) |
| 52 #include "wtf/LeakAnnotations.h" | 51 #include "wtf/LeakAnnotations.h" |
| 53 #endif | 52 #endif |
| 54 | 53 |
| 55 namespace blink { | 54 namespace blink { |
| 56 | 55 |
| (...skipping 1435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1492 // into it. | 1491 // into it. |
| 1493 // | 1492 // |
| 1494 // TODO(sof): remove this hack once wtf/Functional.h can also work with a ty
pe like | 1493 // TODO(sof): remove this hack once wtf/Functional.h can also work with a ty
pe like |
| 1495 // CrossThreadWeakPersistent<>. | 1494 // CrossThreadWeakPersistent<>. |
| 1496 static WeakPtr<T> unwrap(const StorageType& value) { return WeakPtr<T>(WeakR
eference<T>::create(value.get())); } | 1495 static WeakPtr<T> unwrap(const StorageType& value) { return WeakPtr<T>(WeakR
eference<T>::create(value.get())); } |
| 1497 }; | 1496 }; |
| 1498 | 1497 |
| 1499 } // namespace WTF | 1498 } // namespace WTF |
| 1500 | 1499 |
| 1501 #endif | 1500 #endif |
| OLD | NEW |