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

Side by Side Diff: ppapi/proxy/file_mapping_resource_win.cc

Issue 304513007: Remove PlatformFile from ppapi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ppapi/proxy/file_mapping_resource.h" 5 #include "ppapi/proxy/file_mapping_resource.h"
6 6
7 #include "ppapi/c/pp_errors.h" 7 #include "ppapi/c/pp_errors.h"
8 8
9 namespace ppapi { 9 namespace ppapi {
10 namespace proxy { 10 namespace proxy {
11 11
12 // static 12 // static
13 FileMappingResource::MapResult FileMappingResource::DoMapBlocking( 13 FileMappingResource::MapResult FileMappingResource::DoMapBlocking(
14 scoped_refptr<FileIOResource::FileHandleHolder> handle, 14 scoped_refptr<FileIOResource::FileHolder> file_holder,
15 void* address_hint, 15 void* address_hint,
16 int64_t length, 16 int64_t length,
17 uint32_t map_protection, 17 uint32_t map_protection,
18 uint32_t map_flags, 18 uint32_t map_flags,
19 int64_t offset) { 19 int64_t offset) {
20 // TODO(dmichael): Implement for Windows (crbug.com/83774). 20 // TODO(dmichael): Implement for Windows (crbug.com/83774).
21 MapResult map_result; 21 MapResult map_result;
22 map_result.result = PP_ERROR_NOTSUPPORTED; 22 map_result.result = PP_ERROR_NOTSUPPORTED;
23 return map_result; 23 return map_result;
24 } 24 }
25 25
26 // static 26 // static
27 int32_t FileMappingResource::DoUnmapBlocking(const void* address, 27 int32_t FileMappingResource::DoUnmapBlocking(const void* address,
28 int64_t length) { 28 int64_t length) {
29 // TODO(dmichael): Implement for Windows (crbug.com/83774). 29 // TODO(dmichael): Implement for Windows (crbug.com/83774).
30 return PP_ERROR_NOTSUPPORTED; 30 return PP_ERROR_NOTSUPPORTED;
31 } 31 }
32 32
33 // static 33 // static
34 int64_t FileMappingResource::DoGetMapPageSize() { 34 int64_t FileMappingResource::DoGetMapPageSize() {
35 // TODO(dmichael): Implement for Windows (crbug.com/83774). 35 // TODO(dmichael): Implement for Windows (crbug.com/83774).
36 return 0; 36 return 0;
37 } 37 }
38 38
39 } // namespace proxy 39 } // namespace proxy
40 } // namespace ppapi 40 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/file_mapping_resource_posix.cc ('k') | ppapi/proxy/ppp_content_decryptor_private_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698