Home
last modified time | relevance | path

Searched refs:scoped_refptr (Results 1 – 15 of 15) sorted by relevance

/third_party/gn/src/base/memory/
Dscoped_refptr.h18 class scoped_refptr; variable
28 scoped_refptr<T> AdoptRef(T* t);
61 scoped_refptr<T> AdoptRef(T* obj) { in AdoptRef()
69 return scoped_refptr<T>(obj, subtle::kAdoptRefTag); in AdoptRef()
75 scoped_refptr<T> AdoptRefIfNeeded(T* obj, StartRefCountFromZeroTag) { in AdoptRefIfNeeded()
76 return scoped_refptr<T>(obj); in AdoptRefIfNeeded()
80 scoped_refptr<T> AdoptRefIfNeeded(T* obj, StartRefCountFromOneTag) { in AdoptRefIfNeeded()
89 scoped_refptr<T> MakeRefCounted(Args&&... args) { in MakeRefCounted()
97 scoped_refptr<T> WrapRefCounted(T* t) { in WrapRefCounted()
98 return scoped_refptr<T>(t); in WrapRefCounted()
[all …]
Dweak_ptr.h110 explicit WeakReference(const scoped_refptr<Flag>& flag);
121 scoped_refptr<const Flag> flag_;
136 mutable scoped_refptr<WeakReference::Flag> flag_;
Dref_counted.h63 friend scoped_refptr<U> base::AdoptRef(U*);
105 friend scoped_refptr<U> base::AdoptRef(U*);
Dweak_ptr.cc24 WeakReference::WeakReference(const scoped_refptr<Flag>& flag) : flag_(flag) {} in WeakReference()
/third_party/gn/src/gn/
Dscope_unittest.cc65 scoped_refptr<Template> templ(new Template(setup.scope(), &templ_definition)); in TEST()
67 scoped_refptr<Template> private_templ( in TEST()
87 scoped_refptr<Template> new_templ( in TEST()
119 scoped_refptr<Template> new_templ( in TEST()
151 scoped_refptr<Template> new_templ( in TEST()
Dloader_unittest.cc188 scoped_refptr<LoaderImpl> loader(new LoaderImpl(&build_settings_)); in TEST_F()
252 scoped_refptr<LoaderImpl> loader(new LoaderImpl(&build_settings_)); in TEST_F()
301 scoped_refptr<LoaderImpl> loader(new LoaderImpl(&build_settings_)); in TEST_F()
345 scoped_refptr<LoaderImpl> loader(new LoaderImpl(&build_settings_)); in TEST_F()
Dscheduler.h115 scoped_refptr<InputFileManager> input_file_manager_;
Dsetup.h172 scoped_refptr<LoaderImpl> loader_;
Dscope.h365 using TemplateMap = std::map<std::string, scoped_refptr<const Template>>;
Dcommand_check.cc272 scoped_refptr<HeaderChecker> header_checker(new HeaderChecker( in CheckPublicHeaders()
Danalyzer_unittest.cc104 scoped_refptr<MockLoader> loader_;
Dheader_checker_unittest.cc57 scoped_refptr<HeaderChecker> CreateChecker() { in CreateChecker()
Dbuilder_unittest.cc91 scoped_refptr<MockLoader> loader_;
/third_party/node/tools/inspector_protocol/lib/
Dbase_string_adapter_h.template122 scoped_refptr<base::RefCountedMemory> bytes() const { return bytes_; }
127 static Binary fromRefCounted(scoped_refptr<base::RefCountedMemory> memory);
133 explicit Binary(scoped_refptr<base::RefCountedMemory> bytes);
134 scoped_refptr<base::RefCountedMemory> bytes_;
Dbase_string_adapter_cc.template197 Binary::Binary(scoped_refptr<base::RefCountedMemory> bytes) : bytes_(bytes) {}
220 Binary Binary::fromRefCounted(scoped_refptr<base::RefCountedMemory> memory) {
236 return Binary(scoped_refptr<base::RefCountedBytes>(