OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PROXY_PPB_BUFFER_PROXY_H_ | 5 #ifndef PPAPI_PROXY_PPB_BUFFER_PROXY_H_ |
6 #define PPAPI_PROXY_PPB_BUFFER_PROXY_H_ | 6 #define PPAPI_PROXY_PPB_BUFFER_PROXY_H_ |
7 | 7 |
8 #include "base/shared_memory.h" | 8 #include "base/shared_memory.h" |
9 #include "ppapi/c/pp_instance.h" | 9 #include "ppapi/c/pp_instance.h" |
10 #include "ppapi/proxy/interface_proxy.h" | 10 #include "ppapi/proxy/interface_proxy.h" |
| 11 #include "ppapi/proxy/serialized_structs.h" |
11 #include "ppapi/shared_impl/resource.h" | 12 #include "ppapi/shared_impl/resource.h" |
12 #include "ppapi/thunk/ppb_buffer_api.h" | 13 #include "ppapi/thunk/ppb_buffer_api.h" |
13 | 14 |
14 namespace ppapi { | 15 namespace ppapi { |
15 | 16 |
16 class HostResource; | 17 class HostResource; |
17 | 18 |
18 namespace proxy { | 19 namespace proxy { |
19 | 20 |
20 class Buffer : public thunk::PPB_Buffer_API, public Resource { | 21 class Buffer : public thunk::PPB_Buffer_API, public Resource { |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 // InterfaceProxy implementation. | 56 // InterfaceProxy implementation. |
56 virtual bool OnMessageReceived(const IPC::Message& msg); | 57 virtual bool OnMessageReceived(const IPC::Message& msg); |
57 | 58 |
58 static const ApiID kApiID = API_ID_PPB_BUFFER; | 59 static const ApiID kApiID = API_ID_PPB_BUFFER; |
59 | 60 |
60 private: | 61 private: |
61 // Message handlers. | 62 // Message handlers. |
62 void OnMsgCreate(PP_Instance instance, | 63 void OnMsgCreate(PP_Instance instance, |
63 uint32_t size, | 64 uint32_t size, |
64 HostResource* result_resource, | 65 HostResource* result_resource, |
65 base::SharedMemoryHandle* result_shm_handle); | 66 ppapi::proxy::SerializedHandle* result_shm_handle); |
66 }; | 67 }; |
67 | 68 |
68 } // namespace proxy | 69 } // namespace proxy |
69 } // namespace ppapi | 70 } // namespace ppapi |
70 | 71 |
71 #endif // PPAPI_PROXY_PPB_BUFFER_PROXY_H_ | 72 #endif // PPAPI_PROXY_PPB_BUFFER_PROXY_H_ |
OLD | NEW |