1 // Copyright 2012 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef PARTITION_ALLOC_PARTITION_ALLOC_BASE_MEMORY_SCOPED_POLICY_H_ 6 #define PARTITION_ALLOC_PARTITION_ALLOC_BASE_MEMORY_SCOPED_POLICY_H_ 7 8 namespace partition_alloc::internal::base::scoped_policy { 9 10 // Defines the ownership policy for a scoped object. 11 enum OwnershipPolicy { 12 // The scoped object takes ownership of an object by taking over an existing 13 // ownership claim. 14 ASSUME, 15 16 // The scoped object will retain the object and any initial ownership is 17 // not changed. 18 RETAIN 19 }; 20 21 } // namespace partition_alloc::internal::base::scoped_policy 22 23 #endif // PARTITION_ALLOC_PARTITION_ALLOC_BASE_MEMORY_SCOPED_POLICY_H_ 24