| Index: tools/clang/blink_gc_plugin/Config.h
|
| diff --git a/tools/clang/blink_gc_plugin/Config.h b/tools/clang/blink_gc_plugin/Config.h
|
| index 8d331e5581e13e0fdef6e494ae5bc6c7c900dc5a..214908b3d2adb6d42253922019cb5cd4e753f7ba 100644
|
| --- a/tools/clang/blink_gc_plugin/Config.h
|
| +++ b/tools/clang/blink_gc_plugin/Config.h
|
| @@ -49,16 +49,13 @@ class Config {
|
| }
|
|
|
| static bool IsPersistent(const std::string& name) {
|
| - return name == "Persistent";
|
| + return name == "Persistent" ||
|
| + name == "WeakPersistent" ;
|
| }
|
|
|
| - static bool IsPersistentHandle(const std::string& name) {
|
| - return IsPersistent(name) ||
|
| - IsPersistentGCCollection(name);
|
| - }
|
| -
|
| - static bool IsRawPtr(const std::string& name) {
|
| - return name == "RawPtr";
|
| + static bool IsCrossThreadPersistent(const std::string& name) {
|
| + return name == "CrossThreadPersistent" ||
|
| + name == "CrossThreadWeakPersistent" ;
|
| }
|
|
|
| static bool IsRefPtr(const std::string& name) {
|
| @@ -69,6 +66,10 @@ class Config {
|
| return name == "OwnPtr";
|
| }
|
|
|
| + static bool IsUniquePtr(const std::string& name) {
|
| + return name == "unique_ptr";
|
| + }
|
| +
|
| static bool IsWTFCollection(const std::string& name) {
|
| return name == "Vector" ||
|
| name == "Deque" ||
|
|
|