| 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_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 <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/task.h" | 13 #include "base/memory/weak_ptr.h" |
| 14 #include "ppapi/c/pp_completion_callback.h" | 14 #include "ppapi/c/pp_completion_callback.h" |
| 15 #include "ppapi/c/pp_resource.h" | 15 #include "ppapi/c/pp_resource.h" |
| 16 #include "ppapi/shared_impl/ppapi_shared_export.h" | 16 #include "ppapi/shared_impl/ppapi_shared_export.h" |
| 17 | 17 |
| 18 namespace ppapi { | 18 namespace ppapi { |
| 19 | 19 |
| 20 class CallbackTracker; | 20 class CallbackTracker; |
| 21 class Resource; | 21 class Resource; |
| 22 | 22 |
| 23 // |TrackedCallback| represents a tracked Pepper callback (from the browser to | 23 // |TrackedCallback| represents a tracked Pepper callback (from the browser to |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 bool completed_; | 117 bool completed_; |
| 118 bool aborted_; | 118 bool aborted_; |
| 119 PP_CompletionCallback callback_; | 119 PP_CompletionCallback callback_; |
| 120 | 120 |
| 121 DISALLOW_IMPLICIT_CONSTRUCTORS(TrackedCallback); | 121 DISALLOW_IMPLICIT_CONSTRUCTORS(TrackedCallback); |
| 122 }; | 122 }; |
| 123 | 123 |
| 124 } // namespace ppapi | 124 } // namespace ppapi |
| 125 | 125 |
| 126 #endif // PPAPI_SHARED_IMPL_TRACKED_CALLBACK_H_ | 126 #endif // PPAPI_SHARED_IMPL_TRACKED_CALLBACK_H_ |
| OLD | NEW |