OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_PPB_BUFFER_PROXY_H_ | 5 #ifndef PPAPI_PPB_BUFFER_PROXY_H_ |
6 #define PPAPI_PPB_BUFFER_PROXY_H_ | 6 #define PPAPI_PPB_BUFFER_PROXY_H_ |
7 | 7 |
| 8 #include "base/shared_memory.h" |
8 #include "ppapi/c/pp_instance.h" | 9 #include "ppapi/c/pp_instance.h" |
9 #include "ppapi/proxy/interface_proxy.h" | 10 #include "ppapi/proxy/interface_proxy.h" |
10 | 11 |
11 struct PPB_Buffer_Dev; | 12 struct PPB_Buffer_Dev; |
12 | 13 |
13 namespace pp { | 14 namespace pp { |
14 namespace proxy { | 15 namespace proxy { |
15 | 16 |
16 class HostResource; | 17 class HostResource; |
17 | 18 |
(...skipping 12 matching lines...) Expand all Loading... |
30 } | 31 } |
31 | 32 |
32 // InterfaceProxy implementation. | 33 // InterfaceProxy implementation. |
33 virtual bool OnMessageReceived(const IPC::Message& msg); | 34 virtual bool OnMessageReceived(const IPC::Message& msg); |
34 | 35 |
35 private: | 36 private: |
36 // Message handlers. | 37 // Message handlers. |
37 void OnMsgCreate(PP_Instance instance, | 38 void OnMsgCreate(PP_Instance instance, |
38 uint32_t size, | 39 uint32_t size, |
39 HostResource* result_resource, | 40 HostResource* result_resource, |
40 int* result_shm_handle); | 41 base::SharedMemoryHandle* result_shm_handle); |
41 }; | 42 }; |
42 | 43 |
43 } // namespace proxy | 44 } // namespace proxy |
44 } // namespace pp | 45 } // namespace pp |
45 | 46 |
46 #endif // PPAPI_PPB_BUFFER_PROXY_H_ | 47 #endif // PPAPI_PPB_BUFFER_PROXY_H_ |
OLD | NEW |