OLD | NEW |
1 // Copyright (c) 2011 The Chromium 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 PPAPI_SHARED_IMPL_CALLBACK_TRACKER_H_ | 5 #ifndef PPAPI_SHARED_IMPL_CALLBACK_TRACKER_H_ |
6 #define PPAPI_SHARED_IMPL_CALLBACK_TRACKER_H_ | 6 #define PPAPI_SHARED_IMPL_CALLBACK_TRACKER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/macros.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/synchronization/lock.h" | 13 #include "base/synchronization/lock.h" |
14 #include "ppapi/c/pp_resource.h" | 14 #include "ppapi/c/pp_resource.h" |
15 #include "ppapi/shared_impl/ppapi_shared_export.h" | 15 #include "ppapi/shared_impl/ppapi_shared_export.h" |
16 | 16 |
17 namespace ppapi { | 17 namespace ppapi { |
18 | 18 |
19 class TrackedCallback; | 19 class TrackedCallback; |
20 | 20 |
21 // Pepper callbacks have the following semantics (unless otherwise specified; | 21 // Pepper callbacks have the following semantics (unless otherwise specified; |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 bool abort_all_called_; | 103 bool abort_all_called_; |
104 | 104 |
105 base::Lock lock_; | 105 base::Lock lock_; |
106 | 106 |
107 DISALLOW_COPY_AND_ASSIGN(CallbackTracker); | 107 DISALLOW_COPY_AND_ASSIGN(CallbackTracker); |
108 }; | 108 }; |
109 | 109 |
110 } // namespace ppapi | 110 } // namespace ppapi |
111 | 111 |
112 #endif // PPAPI_SHARED_IMPL_CALLBACK_TRACKER_H_ | 112 #endif // PPAPI_SHARED_IMPL_CALLBACK_TRACKER_H_ |
OLD | NEW |