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

Unified Diff: ppapi/cpp/resource.h

Issue 52233002: [PPAPI] Added VarResource_Dev class. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix Windows compile. Created 7 years, 1 month 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/file_system.cc ('k') | ppapi/cpp/resource.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/resource.h
diff --git a/ppapi/cpp/resource.h b/ppapi/cpp/resource.h
index 8f5a92d2e1214815bd1762800fe39ae1b396739d..311db6a1caf4b005f5c94b6a23f93466119acb94 100644
--- a/ppapi/cpp/resource.h
+++ b/ppapi/cpp/resource.h
@@ -14,6 +14,8 @@
/// with the module.
namespace pp {
+class VarResource_Dev;
+
/// A reference counted module resource.
class Resource {
public:
@@ -81,7 +83,12 @@ class Resource {
/// resource.
void PassRefFromConstructor(PP_Resource resource);
+ /// Sets this resource to null. This releases ownership of the resource.
+ void Clear();
+
private:
+ friend class VarResource_Dev;
+
PP_Resource pp_resource_;
};
« no previous file with comments | « ppapi/cpp/file_system.cc ('k') | ppapi/cpp/resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698