OLD | NEW |
(Empty) | |
| 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 namespace pp { |
| 9 |
| 10 /// An annotation for constructors and other functions that take ownership of |
| 11 /// a pointer. For example, a resource constructor that takes ownership of a |
| 12 /// passed in PP_Resource ref count would take this to differentiate from |
| 13 /// the more typical use case of taking its own ref. |
| 14 enum PassRef { PASS_REF }; |
| 15 |
| 16 } // namespace pp |
| 17 |
| 18 #endif // PPAPI_CPP_PASS_REF_H_ |
OLD | NEW |