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

Unified Diff: ppapi/proxy/file_mapping_resource.cc

Issue 304513007: Remove PlatformFile from ppapi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/proxy/file_mapping_resource.h ('k') | ppapi/proxy/file_mapping_resource_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/file_mapping_resource.cc
diff --git a/ppapi/proxy/file_mapping_resource.cc b/ppapi/proxy/file_mapping_resource.cc
index 5b18dbb916b36c4d631706653b655cf220b1916d..c620c06dd29968620cce360a35868ee1fdd1dd66 100644
--- a/ppapi/proxy/file_mapping_resource.cc
+++ b/ppapi/proxy/file_mapping_resource.cc
@@ -41,9 +41,9 @@ int32_t FileMappingResource::Map(PP_Instance /* instance */,
return PP_ERROR_BADARGUMENT;
FileIOResource* file_io_resource =
static_cast<FileIOResource*>(enter.object());
- scoped_refptr<FileIOResource::FileHandleHolder> file_handle =
- file_io_resource->file_handle();
- if (!FileIOResource::FileHandleHolder::IsValid(file_handle))
+ scoped_refptr<FileIOResource::FileHolder> file_holder =
+ file_io_resource->file_holder();
+ if (!FileIOResource::FileHolder::IsValid(file_holder))
return PP_ERROR_FAILED;
if (length < 0 || offset < 0 ||
!base::IsValueInRangeForNumericType<off_t>(offset)) {
@@ -75,7 +75,7 @@ int32_t FileMappingResource::Map(PP_Instance /* instance */,
return PP_ERROR_BADARGUMENT;
base::Callback<MapResult()> map_cb(
- base::Bind(&FileMappingResource::DoMapBlocking, file_handle, *address,
+ base::Bind(&FileMappingResource::DoMapBlocking, file_holder, *address,
length, protection, flags, offset));
if (callback->is_blocking()) {
// The plugin could release its reference to this instance when we release
« no previous file with comments | « ppapi/proxy/file_mapping_resource.h ('k') | ppapi/proxy/file_mapping_resource_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698