| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_SHARED_IMPL_THREAD_AWARE_CALLBACK_H_ | 5 #ifndef PPAPI_SHARED_IMPL_THREAD_AWARE_CALLBACK_H_ |
| 6 #define PPAPI_SHARED_IMPL_THREAD_AWARE_CALLBACK_H_ | 6 #define PPAPI_SHARED_IMPL_THREAD_AWARE_CALLBACK_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | |
| 9 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/macros.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "ppapi/shared_impl/ppapi_shared_export.h" | 11 #include "ppapi/shared_impl/ppapi_shared_export.h" |
| 12 #include "ppapi/shared_impl/proxy_lock.h" | 12 #include "ppapi/shared_impl/proxy_lock.h" |
| 13 | 13 |
| 14 namespace ppapi { | 14 namespace ppapi { |
| 15 | 15 |
| 16 class MessageLoopShared; | 16 class MessageLoopShared; |
| 17 | 17 |
| 18 namespace internal { | 18 namespace internal { |
| 19 | 19 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 | 102 |
| 103 private: | 103 private: |
| 104 explicit ThreadAwareCallback(FuncType func) : func_(func) {} | 104 explicit ThreadAwareCallback(FuncType func) : func_(func) {} |
| 105 | 105 |
| 106 FuncType func_; | 106 FuncType func_; |
| 107 }; | 107 }; |
| 108 | 108 |
| 109 } // namespace ppapi | 109 } // namespace ppapi |
| 110 | 110 |
| 111 #endif // PPAPI_SHARED_IMPL_THREAD_AWARE_CALLBACK_H_ | 111 #endif // PPAPI_SHARED_IMPL_THREAD_AWARE_CALLBACK_H_ |
| OLD | NEW |