| 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_UTILITY_COMPLETION_CALLBACK_FACTORY_H_ | 5 #ifndef PPAPI_UTILITY_COMPLETION_CALLBACK_FACTORY_H_ |
| 6 #define PPAPI_UTILITY_COMPLETION_CALLBACK_FACTORY_H_ | 6 #define PPAPI_UTILITY_COMPLETION_CALLBACK_FACTORY_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include "ppapi/cpp/completion_callback.h" | 10 #include "ppapi/cpp/completion_callback.h" |
| 9 #include "ppapi/utility/completion_callback_factory_thread_traits.h" | 11 #include "ppapi/utility/completion_callback_factory_thread_traits.h" |
| 10 | 12 |
| 11 /// @file | 13 /// @file |
| 12 /// This file defines the API to create CompletionCallback objects that are | 14 /// This file defines the API to create CompletionCallback objects that are |
| 13 /// bound to member functions. | 15 /// bound to member functions. |
| 14 namespace pp { | 16 namespace pp { |
| 15 | 17 |
| 16 // TypeUnwrapper -------------------------------------------------------------- | 18 // TypeUnwrapper -------------------------------------------------------------- |
| 17 | 19 |
| (...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 884 typename ThreadTraits::Lock lock_; | 886 typename ThreadTraits::Lock lock_; |
| 885 | 887 |
| 886 // Protected by the lock. This will get reset when you do CancelAll, for | 888 // Protected by the lock. This will get reset when you do CancelAll, for |
| 887 // example. | 889 // example. |
| 888 BackPointer* back_pointer_; | 890 BackPointer* back_pointer_; |
| 889 }; | 891 }; |
| 890 | 892 |
| 891 } // namespace pp | 893 } // namespace pp |
| 892 | 894 |
| 893 #endif // PPAPI_UTILITY_COMPLETION_CALLBACK_FACTORY_H_ | 895 #endif // PPAPI_UTILITY_COMPLETION_CALLBACK_FACTORY_H_ |
| OLD | NEW |