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 NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_GLOBALS_H_ | 5 #ifndef NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_GLOBALS_H_ |
6 #define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_GLOBALS_H_ | 6 #define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_GLOBALS_H_ |
7 | 7 |
8 #include "ppapi/c/dev/ppb_memory_dev.h" | 8 #include "ppapi/c/dev/ppb_memory_dev.h" |
9 #include "ppapi/c/dev/ppp_find_dev.h" | 9 #include "ppapi/c/dev/ppp_find_dev.h" |
10 #include "ppapi/c/dev/ppp_printing_dev.h" | 10 #include "ppapi/c/dev/ppp_printing_dev.h" |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 const PPP_Selection_Dev* PPPSelectionInterface(); | 74 const PPP_Selection_Dev* PPPSelectionInterface(); |
75 const PPP_Widget_Dev* PPPWidgetInterface(); | 75 const PPP_Widget_Dev* PPPWidgetInterface(); |
76 const PPP_Zoom_Dev* PPPZoomInterface(); | 76 const PPP_Zoom_Dev* PPPZoomInterface(); |
77 | 77 |
78 // Get thread creation/join functions. | 78 // Get thread creation/join functions. |
79 const struct PP_ThreadFunctions* GetThreadCreator(); | 79 const struct PP_ThreadFunctions* GetThreadCreator(); |
80 | 80 |
81 // PPAPI constants used in the proxy. | 81 // PPAPI constants used in the proxy. |
82 extern const PP_Resource kInvalidResourceId; | 82 extern const PP_Resource kInvalidResourceId; |
83 | 83 |
84 // The following function TotalSharedMemorySizeInBytes, is copied & similar | |
85 // to the one in audio_util.cc. This function includes optional fields | |
86 // stored at the end of the audio buffer. | |
87 inline size_t TotalAudioSharedMemorySizeInBytes(size_t audio_buffer_size) { | |
88 // Include optional field that communicates the number of bytes written. | |
89 return audio_buffer_size + sizeof(uint32_t); | |
90 } | |
91 | |
92 } // namespace ppapi_proxy | 84 } // namespace ppapi_proxy |
93 | 85 |
94 #endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_GLOBALS_H_ | 86 #endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_GLOBALS_H_ |
OLD | NEW |