| 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 #include "native_client/src/shared/ppapi_proxy/proxy_var_cache.h" | 5 #include "native_client/src/shared/ppapi_proxy/proxy_var_cache.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "native_client/src/include/ref_counted.h" | 10 #include "native_client/src/include/ref_counted.h" |
| 11 #include "native_client/src/untrusted/pthread/pthread.h" | 11 #include "native_client/src/untrusted/pthread/pthread.h" |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 ProxyVarDictionary::const_iterator iter = | 80 ProxyVarDictionary::const_iterator iter = |
| 81 proxy_var_cache_.find(pp_var.value.as_id); | 81 proxy_var_cache_.find(pp_var.value.as_id); |
| 82 if (iter != proxy_var_cache_.end()) { | 82 if (iter != proxy_var_cache_.end()) { |
| 83 proxy_var = iter->second; | 83 proxy_var = iter->second; |
| 84 } | 84 } |
| 85 pthread_mutex_unlock(&mu); | 85 pthread_mutex_unlock(&mu); |
| 86 return proxy_var; | 86 return proxy_var; |
| 87 } | 87 } |
| 88 | 88 |
| 89 } // namespace ppapi_proxy | 89 } // namespace ppapi_proxy |
| OLD | NEW |