OLD | NEW |
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_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 "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" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 51 |
52 static PP_Resource CreateProxyResource(PP_Instance instance, | 52 static PP_Resource CreateProxyResource(PP_Instance instance, |
53 uint32_t size); | 53 uint32_t size); |
54 static PP_Resource AddProxyResource(const HostResource& resource, | 54 static PP_Resource AddProxyResource(const HostResource& resource, |
55 base::SharedMemoryHandle shm_handle, | 55 base::SharedMemoryHandle shm_handle, |
56 uint32_t size); | 56 uint32_t size); |
57 | 57 |
58 // InterfaceProxy implementation. | 58 // InterfaceProxy implementation. |
59 virtual bool OnMessageReceived(const IPC::Message& msg); | 59 virtual bool OnMessageReceived(const IPC::Message& msg); |
60 | 60 |
61 static const InterfaceID kInterfaceID = INTERFACE_ID_PPB_BUFFER; | 61 static const ApiID kApiID = API_ID_PPB_BUFFER; |
62 | 62 |
63 private: | 63 private: |
64 // Message handlers. | 64 // Message handlers. |
65 void OnMsgCreate(PP_Instance instance, | 65 void OnMsgCreate(PP_Instance instance, |
66 uint32_t size, | 66 uint32_t size, |
67 HostResource* result_resource, | 67 HostResource* result_resource, |
68 base::SharedMemoryHandle* result_shm_handle); | 68 base::SharedMemoryHandle* result_shm_handle); |
69 }; | 69 }; |
70 | 70 |
71 } // namespace proxy | 71 } // namespace proxy |
72 } // namespace ppapi | 72 } // namespace ppapi |
73 | 73 |
74 #endif // PPAPI_PPB_BUFFER_PROXY_H_ | 74 #endif // PPAPI_PPB_BUFFER_PROXY_H_ |
OLD | NEW |