Chromium Code Reviews| Index: tools/clang/blink_gc_plugin/RecordInfo.h |
| diff --git a/tools/clang/blink_gc_plugin/RecordInfo.h b/tools/clang/blink_gc_plugin/RecordInfo.h |
| index 220a6d3b3138f25625aac0c6a285079f11727058..f207e16f1db8ff9d0e79759a5fbcdd3e28da8ab2 100644 |
| --- a/tools/clang/blink_gc_plugin/RecordInfo.h |
| +++ b/tools/clang/blink_gc_plugin/RecordInfo.h |
| @@ -118,6 +118,16 @@ class RecordInfo { |
| static clang::CXXRecordDecl* GetDependentTemplatedDecl(const clang::Type&); |
| + // If |RecordInfo| represents blink::(CrossThread)Persistent<T>, return |
| + // its type. |is_persistent| is set to |true| if the base type name is |
|
dcheng
2017/02/16 04:35:51
Make this match the actual param name? =)
sof
2017/02/16 06:45:34
Updated to use version N naming, not (N-1). :)
|
| + // |Persistent| (or |CrossThreadPersistent|.) |
| + const clang::Type* GetPersistentArgumentType(bool& has_persistent_name); |
| + |
| + RecordCache* cache() const { return cache_; } |
| + |
| + // Returns |true| if type is declared in "blink::" |
| + bool IsInBlinkNamespace(); |
| + |
| private: |
| RecordInfo(clang::CXXRecordDecl* record, RecordCache* cache); |