summaryrefslogtreecommitdiffstats
path: root/ppapi/cpp/url_loader.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ppapi/cpp/url_loader.cc')
-rw-r--r--ppapi/cpp/url_loader.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/ppapi/cpp/url_loader.cc b/ppapi/cpp/url_loader.cc
index 8ef6087..81bcdfd 100644
--- a/ppapi/cpp/url_loader.cc
+++ b/ppapi/cpp/url_loader.cc
@@ -28,6 +28,7 @@ template <> const char* interface_name<PPB_URLLoader>() {
URLLoader::URLLoader(PP_Resource resource) : Resource(resource) {
}
+// TODO(brettw) remove this when NaCl is updated.
URLLoader::URLLoader(const Instance& instance) {
if (!has_interface<PPB_URLLoader>())
return;
@@ -35,6 +36,13 @@ URLLoader::URLLoader(const Instance& instance) {
instance.pp_instance()));
}
+URLLoader::URLLoader(Instance* instance) {
+ if (!has_interface<PPB_URLLoader>())
+ return;
+ PassRefFromConstructor(get_interface<PPB_URLLoader>()->Create(
+ instance->pp_instance()));
+}
+
URLLoader::URLLoader(const URLLoader& other) : Resource(other) {
}