OLD | NEW |
---|---|
(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_ | |
OLD | NEW |