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

Unified Diff: ppapi/cpp/resource.cc

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/resource.h ('k') | ppapi/cpp/trusted/browser_font_trusted.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/resource.cc
diff --git a/ppapi/cpp/resource.cc b/ppapi/cpp/resource.cc
index 5a327d635937daabb1c46d90a5108bdc2f37df04..3ccc198b3b116ac7e842fd9f53bcb91032c0c7cb 100644
--- a/ppapi/cpp/resource.cc
+++ b/ppapi/cpp/resource.cc
@@ -44,6 +44,9 @@ Resource::Resource(PP_Resource resource) : pp_resource_(resource) {
Module::Get()->core()->AddRefResource(pp_resource_);
}
+Resource::Resource(PassRef, PP_Resource resource) : pp_resource_(resource) {
+}
+
void Resource::PassRefFromConstructor(PP_Resource resource) {
PP_DCHECK(!pp_resource_);
pp_resource_ = resource;
« no previous file with comments | « ppapi/cpp/resource.h ('k') | ppapi/cpp/trusted/browser_font_trusted.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698