Index: webkit/plugins/ppapi/ppb_url_request_info_impl.cc |
diff --git a/webkit/plugins/ppapi/ppb_url_request_info_impl.cc b/webkit/plugins/ppapi/ppb_url_request_info_impl.cc |
index 1b72319116f0e721e0b51d2f89df2d2310a66fc0..e6a3ff39f57612382b594db65053afa9fbc95d6a 100644 |
--- a/webkit/plugins/ppapi/ppb_url_request_info_impl.cc |
+++ b/webkit/plugins/ppapi/ppb_url_request_info_impl.cc |
@@ -25,6 +25,7 @@ |
#include "webkit/plugins/ppapi/ppapi_plugin_instance.h" |
#include "webkit/plugins/ppapi/ppb_file_ref_impl.h" |
#include "webkit/plugins/ppapi/ppb_file_system_impl.h" |
+#include "webkit/plugins/ppapi/resource_helper.h" |
#include "webkit/plugins/ppapi/string.h" |
using ppapi::StringVar; |
@@ -183,7 +184,7 @@ struct PPB_URLRequestInfo_Impl::BodyItem { |
PP_Time expected_last_modified_time; |
}; |
-PPB_URLRequestInfo_Impl::PPB_URLRequestInfo_Impl(PluginInstance* instance) |
+PPB_URLRequestInfo_Impl::PPB_URLRequestInfo_Impl(PP_Instance instance) |
: Resource(instance), |
stream_to_file_(false), |
follow_redirects_(true), |
@@ -295,9 +296,9 @@ WebURLRequest PPB_URLRequestInfo_Impl::ToWebURLRequest(WebFrame* frame) const { |
case PP_FILESYSTEMTYPE_LOCALPERSISTENT: |
// TODO(kinuko): remove this sync IPC when we add more generic |
// AppendURLRange solution that works for both Blob/FileSystem URL. |
- instance()->delegate()->SyncGetFileSystemPlatformPath( |
- body_[i].file_ref->GetFileSystemURL(), |
- &platform_path); |
+ ResourceHelper::GetPluginDelegate(this)-> |
+ SyncGetFileSystemPlatformPath( |
+ body_[i].file_ref->GetFileSystemURL(), &platform_path); |
break; |
case PP_FILESYSTEMTYPE_EXTERNAL: |
platform_path = body_[i].file_ref->GetSystemPath(); |