Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(475)

Unified Diff: ppapi/cpp/pass_ref.h

Issue 9381010: Convert resources to take an instance key instead of an Instance*. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: USELESS PATCH TITLE Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/cpp/mouse_lock.cc ('k') | ppapi/cpp/private/flash.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/pass_ref.h
diff --git a/ppapi/cpp/pass_ref.h b/ppapi/cpp/pass_ref.h
new file mode 100644
index 0000000000000000000000000000000000000000..ebe1ddd78e5f445355f973acf6e369c439f7d1f4
--- /dev/null
+++ b/ppapi/cpp/pass_ref.h
@@ -0,0 +1,18 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef PPAPI_CPP_PASS_REF_H_
+#define PPAPI_CPP_PASS_REF_H_
+
+namespace pp {
+
+/// An annotation for constructors and other functions that take ownership of
+/// a pointer. For example, a resource constructor that takes ownership of a
+/// passed in PP_Resource ref count would take this to differentiate from
+/// the more typical use case of taking its own ref.
+enum PassRef { PASS_REF };
+
+} // namespace pp
+
+#endif // PPAPI_CPP_PASS_REF_H_
« no previous file with comments | « ppapi/cpp/mouse_lock.cc ('k') | ppapi/cpp/private/flash.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698