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 PPAPI_SHARED_IMPL_TRACKED_CALLBACK_H_ | 5 #ifndef PPAPI_SHARED_IMPL_TRACKED_CALLBACK_H_ |
6 #define PPAPI_SHARED_IMPL_TRACKED_CALLBACK_H_ | 6 #define PPAPI_SHARED_IMPL_TRACKED_CALLBACK_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include <map> | 10 #include <map> |
9 #include <set> | 11 #include <set> |
10 | 12 |
11 #include "base/basictypes.h" | |
12 #include "base/callback.h" | 13 #include "base/callback.h" |
| 14 #include "base/macros.h" |
13 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
14 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
15 #include "base/synchronization/condition_variable.h" | 17 #include "base/synchronization/condition_variable.h" |
16 #include "base/synchronization/lock.h" | 18 #include "base/synchronization/lock.h" |
17 #include "ppapi/c/pp_completion_callback.h" | 19 #include "ppapi/c/pp_completion_callback.h" |
18 #include "ppapi/c/pp_instance.h" | 20 #include "ppapi/c/pp_instance.h" |
19 #include "ppapi/c/pp_resource.h" | 21 #include "ppapi/c/pp_resource.h" |
20 #include "ppapi/shared_impl/ppapi_shared_export.h" | 22 #include "ppapi/shared_impl/ppapi_shared_export.h" |
21 #include "ppapi/shared_impl/ppb_message_loop_shared.h" | 23 #include "ppapi/shared_impl/ppb_message_loop_shared.h" |
22 | 24 |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 // callback. Note that in-process, there is no lock, blocking callbacks are | 193 // callback. Note that in-process, there is no lock, blocking callbacks are |
192 // not allowed, and therefore this pointer will be NULL. | 194 // not allowed, and therefore this pointer will be NULL. |
193 scoped_ptr<base::ConditionVariable> operation_completed_condvar_; | 195 scoped_ptr<base::ConditionVariable> operation_completed_condvar_; |
194 | 196 |
195 DISALLOW_IMPLICIT_CONSTRUCTORS(TrackedCallback); | 197 DISALLOW_IMPLICIT_CONSTRUCTORS(TrackedCallback); |
196 }; | 198 }; |
197 | 199 |
198 } // namespace ppapi | 200 } // namespace ppapi |
199 | 201 |
200 #endif // PPAPI_SHARED_IMPL_TRACKED_CALLBACK_H_ | 202 #endif // PPAPI_SHARED_IMPL_TRACKED_CALLBACK_H_ |
OLD | NEW |