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

Unified Diff: ppapi/cpp/url_response_info.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/url_response_info.h ('k') | ppapi/cpp/var.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/url_response_info.cc
diff --git a/ppapi/cpp/url_response_info.cc b/ppapi/cpp/url_response_info.cc
index 64b768616875adbf627bff1d7964f8d4f56971b0..a1e2d3a13f892a1721675b7a6c676820885891b6 100644
--- a/ppapi/cpp/url_response_info.cc
+++ b/ppapi/cpp/url_response_info.cc
@@ -22,14 +22,14 @@ URLResponseInfo::URLResponseInfo(const URLResponseInfo& other)
: Resource(other) {
}
-URLResponseInfo::URLResponseInfo(PassRef, PP_Resource resource) {
- PassRefFromConstructor(resource);
+URLResponseInfo::URLResponseInfo(PassRef, PP_Resource resource)
+ : Resource(PASS_REF, resource) {
}
Var URLResponseInfo::GetProperty(PP_URLResponseProperty property) const {
if (!has_interface<PPB_URLResponseInfo>())
return Var();
- return Var(Var::PassRef(),
+ return Var(PASS_REF,
get_interface<PPB_URLResponseInfo>()->GetProperty(pp_resource(),
property));
}
@@ -37,7 +37,7 @@ Var URLResponseInfo::GetProperty(PP_URLResponseProperty property) const {
FileRef URLResponseInfo::GetBodyAsFileRef() const {
if (!has_interface<PPB_URLResponseInfo>())
return FileRef();
- return FileRef(FileRef::PassRef(),
+ return FileRef(PASS_REF,
get_interface<PPB_URLResponseInfo>()->GetBodyAsFileRef(
pp_resource()));
}
« no previous file with comments | « ppapi/cpp/url_response_info.h ('k') | ppapi/cpp/var.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698