scoped_policy.h 675 B

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