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

Unified Diff: webkit/plugins/ppapi/resource_creation_impl.cc

Issue 7706021: Convert FileRefImpl and URLRequestInfo to shared_impl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tests fixed Created 9 years, 4 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
Index: webkit/plugins/ppapi/resource_creation_impl.cc
diff --git a/webkit/plugins/ppapi/resource_creation_impl.cc b/webkit/plugins/ppapi/resource_creation_impl.cc
index 15436f189ec2bbf4afecd7f8ba035ce7b04900ba..05f09cc067965a37516e27ece30481dc9eaa2a52 100644
--- a/webkit/plugins/ppapi/resource_creation_impl.cc
+++ b/webkit/plugins/ppapi/resource_creation_impl.cc
@@ -118,7 +118,8 @@ PP_Resource ResourceCreationImpl::CreateFileIO(PP_Instance instance) {
PP_Resource ResourceCreationImpl::CreateFileRef(PP_Resource file_system,
const char* path) {
- return PPB_FileRef_Impl::Create(file_system, path);
+ PPB_FileRef_Impl* res = PPB_FileRef_Impl::CreateInternal(file_system, path);
+ return res ? res->GetReference() : 0;
}
PP_Resource ResourceCreationImpl::CreateFileSystem(
@@ -256,8 +257,10 @@ PP_Resource ResourceCreationImpl::CreateURLLoader(PP_Instance instance) {
return (new PPB_URLLoader_Impl(instance, false))->GetReference();
}
-PP_Resource ResourceCreationImpl::CreateURLRequestInfo(PP_Instance instance) {
- return (new PPB_URLRequestInfo_Impl(instance))->GetReference();
+PP_Resource ResourceCreationImpl::CreateURLRequestInfo(
+ PP_Instance instance,
+ const ::ppapi::PPB_URLRequestInfo_Data& data) {
+ return (new PPB_URLRequestInfo_Impl(instance, data))->GetReference();
}
PP_Resource ResourceCreationImpl::CreateVideoCapture(PP_Instance instance) {

Powered by Google App Engine
This is Rietveld 408576698