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

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

Issue 1154613006: Update pepper to not assume that SharedMemoryHandle is an int. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Another nits pass. Created 5 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef PPAPI_THUNK_PPB_BUFFER_API_H_ 5 #ifndef PPAPI_THUNK_PPB_BUFFER_API_H_
6 #define PPAPI_THUNK_PPB_BUFFER_API_H_ 6 #define PPAPI_THUNK_PPB_BUFFER_API_H_
7 7
8 #include "ppapi/c/pp_bool.h" 8 #include "ppapi/c/pp_bool.h"
9 #include "ppapi/c/pp_stdint.h" 9 #include "ppapi/c/pp_stdint.h"
10 #include "ppapi/thunk/ppapi_thunk_export.h" 10 #include "ppapi/thunk/ppapi_thunk_export.h"
11 11
12 namespace base {
13 class SharedMemory;
14 } // namespace base
15
12 namespace ppapi { 16 namespace ppapi {
13 namespace thunk { 17 namespace thunk {
14 18
15 class PPAPI_THUNK_EXPORT PPB_Buffer_API { 19 class PPAPI_THUNK_EXPORT PPB_Buffer_API {
16 public: 20 public:
17 virtual ~PPB_Buffer_API() {} 21 virtual ~PPB_Buffer_API() {}
18 22
19 virtual PP_Bool Describe(uint32_t* size_in_bytes) = 0; 23 virtual PP_Bool Describe(uint32_t* size_in_bytes) = 0;
20 virtual PP_Bool IsMapped() = 0; 24 virtual PP_Bool IsMapped() = 0;
21 virtual void* Map() = 0; 25 virtual void* Map() = 0;
22 virtual void Unmap() = 0; 26 virtual void Unmap() = 0;
23 27
24 // Trusted API 28 // Trusted API
25 virtual int32_t GetSharedMemory(int* handle) = 0; 29 virtual int32_t GetSharedMemory(base::SharedMemory** shm) = 0;
26 }; 30 };
27 31
28 } // namespace thunk 32 } // namespace thunk
29 } // namespace ppapi 33 } // namespace ppapi
30 34
31 #endif // PPAPI_THUNK_PPB_BUFFER_API_H_ 35 #endif // PPAPI_THUNK_PPB_BUFFER_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698