| OLD | NEW |
| 1 // Copyright (c) 2011 The Native Client 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 NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_CALLBACK_H_ | 5 #ifndef NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_CALLBACK_H_ |
| 6 #define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_CALLBACK_H_ | 6 #define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_CALLBACK_H_ |
| 7 | 7 |
| 8 #include <pthread.h> | 8 #include <pthread.h> |
| 9 #include <map> | 9 #include <map> |
| 10 #include "native_client/src/shared/ppapi_proxy/plugin_globals.h" | 10 #include "native_client/src/shared/ppapi_proxy/plugin_globals.h" |
| 11 #include "ppapi/c/pp_completion_callback.h" | 11 #include "ppapi/c/pp_completion_callback.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 class CallbackTableCriticalSection { | 56 class CallbackTableCriticalSection { |
| 57 public: | 57 public: |
| 58 CallbackTableCriticalSection() { pthread_mutex_lock(&mutex_); } | 58 CallbackTableCriticalSection() { pthread_mutex_lock(&mutex_); } |
| 59 ~CallbackTableCriticalSection() { pthread_mutex_unlock(&mutex_); } | 59 ~CallbackTableCriticalSection() { pthread_mutex_unlock(&mutex_); } |
| 60 }; | 60 }; |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 } // namespace ppapi_proxy | 63 } // namespace ppapi_proxy |
| 64 | 64 |
| 65 #endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_CALLBACK_H_ | 65 #endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_CALLBACK_H_ |
| OLD | NEW |