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

Side by Side Diff: third_party/WebKit/Source/platform/heap/Handle.h

Issue 1919643002: Remove RefCountedGarbageCollected<>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sof-data-pers
Patch Set: rebased Created 4 years, 8 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 unified diff | Download patch
OLDNEW
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
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/RefCounted.h"
47 #include "wtf/TypeTraits.h" 46 #include "wtf/TypeTraits.h"
48 47
49 #if defined(LEAK_SANITIZER) 48 #if defined(LEAK_SANITIZER)
50 #include "wtf/LeakAnnotations.h" 49 #include "wtf/LeakAnnotations.h"
51 #endif 50 #endif
52 51
53 namespace blink { 52 namespace blink {
54 53
55 // Marker used to annotate persistent objects and collections with, 54 // Marker used to annotate persistent objects and collections with,
56 // so as to enable reliable testing for persistent references via 55 // so as to enable reliable testing for persistent references via
(...skipping 1170 matching lines...) Expand 10 before | Expand all | Expand 10 after
1227 // into it. 1226 // into it.
1228 // 1227 //
1229 // TODO(sof): remove this hack once wtf/Functional.h can also work with a ty pe like 1228 // TODO(sof): remove this hack once wtf/Functional.h can also work with a ty pe like
1230 // CrossThreadWeakPersistent<>. 1229 // CrossThreadWeakPersistent<>.
1231 static WeakPtr<T> unwrap(const StorageType& value) { return WeakPtr<T>(WeakR eference<T>::create(value.get())); } 1230 static WeakPtr<T> unwrap(const StorageType& value) { return WeakPtr<T>(WeakR eference<T>::create(value.get())); }
1232 }; 1231 };
1233 1232
1234 } // namespace WTF 1233 } // namespace WTF
1235 1234
1236 #endif 1235 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/heap/GarbageCollected.h ('k') | third_party/WebKit/Source/platform/heap/HeapTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698