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 5 #ifndef PPAPI_CPP_PASS_REF_H_ 6 #define PPAPI_CPP_PASS_REF_H_ 7 8 /// @file 9 /// This file defines an annotation for constructors and other functions that 10 /// take ownership of a pointer. 11 namespace pp { 12 13 /// An annotation for constructors and other functions that take ownership of 14 /// a pointer. For example, a resource constructor that takes ownership of a 15 /// provided <code>PP_Resource</code> ref count would take this enumeration to 16 /// differentiate from the more typical use case of taking its own reference. 17 enum PassRef { PASS_REF }; 18 19 } // namespace pp 20 21 #endif // PPAPI_CPP_PASS_REF_H_ 22