Lines Matching refs:Retain
15 // of a reference to any type that is maintained by Retain and Release methods.
17 // The Traits structure must provide the Retain and Release methods for type T.
25 // static CGLContextObj Retain(CGLContextObj object) {
42 // ownership of the object (and should not call Retain in initialization) or if
44 // Retain in initialization). This behavior is based on the |policy| parameter,
45 // with |ASSUME| for the former and |RETAIN| for the latter. The default policy
60 if (object_ && policy == base::scoped_policy::RETAIN)
61 object_ = Traits::Retain(object_);
67 object_ = Traits::Retain(object_);
76 reset(that.get(), base::scoped_policy::RETAIN);
91 if (object && policy == base::scoped_policy::RETAIN)
92 object = Traits::Retain(object);