summaryrefslogtreecommitdiffstats
path: root/ppapi/proxy/file_mapping_resource_win.cc
diff options
context:
space:
mode:
authordmichael@chromium.org <dmichael@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-29 00:49:51 +0000
committerdmichael@chromium.org <dmichael@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-29 00:49:51 +0000
commitf54329e5d6a76858c67869e678f9462a964632b7 (patch)
tree4b92fd9b8111a157a4b66049aedf673c0856dfc9 /ppapi/proxy/file_mapping_resource_win.cc
parent0be9392b7cc037c74baa929bc384baf36b0001f3 (diff)
downloadchromium_src-f54329e5d6a76858c67869e678f9462a964632b7.zip
chromium_src-f54329e5d6a76858c67869e678f9462a964632b7.tar.gz
chromium_src-f54329e5d6a76858c67869e678f9462a964632b7.tar.bz2
PPAPI: Implement PPB_FileMapping on POSIX
BUG=83774 R=bbudge@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=247473 Review URL: https://codereview.chromium.org/69663002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247546 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/file_mapping_resource_win.cc')
-rw-r--r--ppapi/proxy/file_mapping_resource_win.cc40
1 files changed, 40 insertions, 0 deletions
diff --git a/ppapi/proxy/file_mapping_resource_win.cc b/ppapi/proxy/file_mapping_resource_win.cc
new file mode 100644
index 0000000..70c3d20
--- /dev/null
+++ b/ppapi/proxy/file_mapping_resource_win.cc
@@ -0,0 +1,40 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ppapi/proxy/file_mapping_resource.h"
+
+#include "ppapi/c/pp_errors.h"
+
+namespace ppapi {
+namespace proxy {
+
+// static
+FileMappingResource::MapResult FileMappingResource::DoMapBlocking(
+ scoped_refptr<FileIOResource::FileHandleHolder> handle,
+ void* address_hint,
+ int64_t length,
+ uint32_t map_protection,
+ uint32_t map_flags,
+ int64_t offset) {
+ // TODO(dmichael): Implement for Windows (crbug.com/83774).
+ MapResult map_result;
+ map_result.result = PP_ERROR_NOTSUPPORTED;
+ return map_result;
+}
+
+// static
+int32_t FileMappingResource::DoUnmapBlocking(const void* address,
+ int64_t length) {
+ // TODO(dmichael): Implement for Windows (crbug.com/83774).
+ return PP_ERROR_NOTSUPPORTED;
+}
+
+// static
+int64_t FileMappingResource::DoGetMapPageSize() {
+ // TODO(dmichael): Implement for Windows (crbug.com/83774).
+ return 0;
+}
+
+} // namespace proxy
+} // namespace ppapi