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

Side by Side Diff: ppapi/thunk/ppb_file_mapping_api.h

Issue 69663002: PPAPI: Implement PPB_FileMapping on POSIX (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Windows build? Created 6 years, 11 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
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
bbudge 2014/01/23 23:01:03 2014
dmichael (off chromium) 2014/01/24 20:02:50 Done.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef PPAPI_THUNK_PPB_FILE_MAPPING_API_H_
6 #define PPAPI_THUNK_PPB_FILE_MAPPING_API_H_
7
8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h"
10 #include "ppapi/c/pp_instance.h"
11 #include "ppapi/c/ppb_file_mapping.h"
12 #include "ppapi/shared_impl/singleton_resource_id.h"
13 #include "ppapi/thunk/ppapi_thunk_export.h"
14
15 namespace ppapi {
16
17 class TrackedCallback;
18
19 namespace thunk {
20
21 class PPAPI_THUNK_EXPORT PPB_FileMapping_API {
22 public:
23 virtual ~PPB_FileMapping_API() {}
24
25 virtual int32_t Map(PP_Instance instance,
26 PP_Resource file_io,
27 int64_t length,
28 uint32_t map_protection,
29 uint32_t map_flags,
30 int64_t offset,
31 void** address,
32 scoped_refptr<TrackedCallback> callback) = 0;
33 virtual int32_t Unmap(PP_Instance instance,
34 const void* address,
35 int64_t length,
36 scoped_refptr<TrackedCallback> callback) = 0;
37 virtual int64_t GetMapPageSize(PP_Instance instance) = 0;
38
39 static const SingletonResourceID kSingletonResourceID =
40 FILE_MAPPING_SINGLETON_ID;
41 };
42
43 } // namespace thunk
44 } // namespace ppapi
45
46 #endif // PPAPI_THUNK_PPB_FILE_MAPPING_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698