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

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

Issue 7669055: Remove webkit::ppapi::Resource. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nulls auditeed 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
« no previous file with comments | « webkit/plugins/ppapi/ppb_url_request_info_impl.h ('k') | webkit/plugins/ppapi/ppb_url_response_info_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..985a795514315ad103230d8ce556f7cfa5b9db20 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),
@@ -292,13 +293,17 @@ WebURLRequest PPB_URLRequestInfo_Impl::ToWebURLRequest(WebFrame* frame) const {
FilePath platform_path;
switch (body_[i].file_ref->file_system()->type()) {
case PP_FILESYSTEMTYPE_LOCALTEMPORARY:
- case PP_FILESYSTEMTYPE_LOCALPERSISTENT:
+ 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);
+ PluginDelegate* plugin_delegate =
+ ResourceHelper::GetPluginDelegate(this);
+ if (plugin_delegate) {
+ plugin_delegate->SyncGetFileSystemPlatformPath(
+ body_[i].file_ref->GetFileSystemURL(), &platform_path);
+ }
break;
+ }
case PP_FILESYSTEMTYPE_EXTERNAL:
platform_path = body_[i].file_ref->GetSystemPath();
break;
« no previous file with comments | « webkit/plugins/ppapi/ppb_url_request_info_impl.h ('k') | webkit/plugins/ppapi/ppb_url_response_info_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698