Revert 251029 "Move Windows-specific code into NativeAppWindowVi..."
[chromium-blink-merge.git] / ppapi / proxy / file_mapping_resource_win.cc
blob70c3d208198f7f95085db8e57d00ce9a9b02ef9b
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
3 // found in the LICENSE file.
5 #include "ppapi/proxy/file_mapping_resource.h"
7 #include "ppapi/c/pp_errors.h"
9 namespace ppapi {
10 namespace proxy {
12 // static
13 FileMappingResource::MapResult FileMappingResource::DoMapBlocking(
14 scoped_refptr<FileIOResource::FileHandleHolder> handle,
15 void* address_hint,
16 int64_t length,
17 uint32_t map_protection,
18 uint32_t map_flags,
19 int64_t offset) {
20 // TODO(dmichael): Implement for Windows (crbug.com/83774).
21 MapResult map_result;
22 map_result.result = PP_ERROR_NOTSUPPORTED;
23 return map_result;
26 // static
27 int32_t FileMappingResource::DoUnmapBlocking(const void* address,
28 int64_t length) {
29 // TODO(dmichael): Implement for Windows (crbug.com/83774).
30 return PP_ERROR_NOTSUPPORTED;
33 // static
34 int64_t FileMappingResource::DoGetMapPageSize() {
35 // TODO(dmichael): Implement for Windows (crbug.com/83774).
36 return 0;
39 } // namespace proxy
40 } // namespace ppapi