Home | History | Annotate | Download | only in base

Lines Matching defs:copy

23 // Make a deep copy of |node|, but don't include empty lists or dictionaries
24 // in the copy. It's possible for this function to return NULL and it
31 ListValue* copy = new ListValue;
36 copy->Append(child_copy);
38 if (!copy->empty())
39 return copy;
41 delete copy;
47 DictionaryValue* copy = new DictionaryValue;
51 copy->SetWithoutPathExpansion(it.key(), child_copy);
53 if (!copy->empty())
54 return copy;
56 delete copy;
61 // For everything else, just make a copy.
776 Value* copy = CopyWithoutEmptyChildren(this);
777 return copy ? static_cast<DictionaryValue*>(copy) : new DictionaryValue;
792 // All other cases: Make a copy and hook it up.