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

Unified Diff: ppapi/cpp/dev/buffer_dev.h

Issue 10909068: Fix resource leaks in CDM implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Same patchset as number 8, hopefully this one is viewable... Created 8 years, 3 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 | « no previous file | ppapi/cpp/dev/buffer_dev.cc » ('j') | webkit/media/crypto/ppapi/cdm_wrapper.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/dev/buffer_dev.h
diff --git a/ppapi/cpp/dev/buffer_dev.h b/ppapi/cpp/dev/buffer_dev.h
index da89cbaee58ca83992dbe9dc4898a1251c35720d..d82f92d5cc8dd4e5de9abe6edb20efbead6f038f 100644
--- a/ppapi/cpp/dev/buffer_dev.h
+++ b/ppapi/cpp/dev/buffer_dev.h
@@ -22,6 +22,10 @@ class Buffer_Dev : public Resource {
// resulting object will be is_null() if either Create() or Map() fails.
Buffer_Dev(const InstanceHandle& instance, uint32_t size);
+ // Constructor used when the buffer resource already has a reference count
+ // assigned. No additional reference is taken.
+ Buffer_Dev(PassRef, PP_Resource resource);
+
// Unmap the underlying shared memory.
virtual ~Buffer_Dev();
« no previous file with comments | « no previous file | ppapi/cpp/dev/buffer_dev.cc » ('j') | webkit/media/crypto/ppapi/cdm_wrapper.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698