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

Unified Diff: ppapi/proxy/file_mapping_resource_posix.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.cc ('k') | ppapi/proxy/file_mapping_resource_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/file_mapping_resource_posix.cc
diff --git a/ppapi/proxy/file_mapping_resource_posix.cc b/ppapi/proxy/file_mapping_resource_posix.cc
index b1aff777083c0e1e4fe2bd992903acb947a5c8c5..24ce546916cc49fe9c6e9abaf013234205383737 100644
--- a/ppapi/proxy/file_mapping_resource_posix.cc
+++ b/ppapi/proxy/file_mapping_resource_posix.cc
@@ -35,7 +35,7 @@ int32_t ErrnoToPPError(int error_code) {
// static
FileMappingResource::MapResult FileMappingResource::DoMapBlocking(
- scoped_refptr<FileIOResource::FileHandleHolder> handle,
+ scoped_refptr<FileIOResource::FileHolder> file_holder,
void* address_hint,
int64_t length,
uint32_t map_protection,
@@ -63,7 +63,7 @@ FileMappingResource::MapResult FileMappingResource::DoMapBlocking(
static_cast<size_t>(length),
prot_for_mmap,
flags_for_mmap,
- handle->raw_handle(),
+ file_holder->file()->GetPlatformFile(),
static_cast<off_t>(offset));
if (map_result.address != MAP_FAILED)
map_result.result = PP_OK;
« no previous file with comments | « ppapi/proxy/file_mapping_resource.cc ('k') | ppapi/proxy/file_mapping_resource_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698