Home
last modified time | relevance | path

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

/external/libchrome/base/memory/
Dsingleton_unittest.cc94 class CallbackSingletonWithStaticTrait : public CallbackSingleton { class
98 CallbackSingletonWithStaticTrait() : CallbackSingleton() { } in CallbackSingletonWithStaticTrait() function in base::__anonaa65aa120111::CallbackSingletonWithStaticTrait
100 static CallbackSingletonWithStaticTrait* GetInstance() { in GetInstance()
101 return Singleton<CallbackSingletonWithStaticTrait, Trait>::get(); in GetInstance()
105 struct CallbackSingletonWithStaticTrait::Trait
106 : public StaticMemorySingletonTraits<CallbackSingletonWithStaticTrait> {
107 static void Delete(CallbackSingletonWithStaticTrait* instance) { in Delete()
110 StaticMemorySingletonTraits<CallbackSingletonWithStaticTrait>::Delete( in Delete()
147 CallbackSingletonWithStaticTrait::GetInstance()->callback_ = CallOnQuit; in SingletonStatic()
151 return &CallbackSingletonWithStaticTrait::GetInstance()->callback_; in GetStaticSingleton()
[all …]