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_CPP_COMPLETION_CALLBACK_H_ | 5 #ifndef PPAPI_CPP_COMPLETION_CALLBACK_H_ |
6 #define PPAPI_CPP_COMPLETION_CALLBACK_H_ | 6 #define PPAPI_CPP_COMPLETION_CALLBACK_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include "ppapi/c/pp_completion_callback.h" | 10 #include "ppapi/c/pp_completion_callback.h" |
9 #include "ppapi/c/pp_errors.h" | 11 #include "ppapi/c/pp_errors.h" |
10 #include "ppapi/cpp/logging.h" | 12 #include "ppapi/cpp/logging.h" |
11 #include "ppapi/cpp/module.h" | 13 #include "ppapi/cpp/module.h" |
12 #include "ppapi/cpp/output_traits.h" | 14 #include "ppapi/cpp/output_traits.h" |
13 | 15 |
14 /// @file | 16 /// @file |
15 /// This file defines the API to create and run a callback. | 17 /// This file defines the API to create and run a callback. |
16 namespace pp { | 18 namespace pp { |
17 | 19 |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 /// @return A <code>CompletionCallback</code> corresponding to a NULL callback. | 268 /// @return A <code>CompletionCallback</code> corresponding to a NULL callback. |
267 inline CompletionCallback BlockUntilComplete() { | 269 inline CompletionCallback BlockUntilComplete() { |
268 // Note: Explicitly inlined to avoid link errors when included into | 270 // Note: Explicitly inlined to avoid link errors when included into |
269 // ppapi_proxy and ppapi_cpp_objects. | 271 // ppapi_proxy and ppapi_cpp_objects. |
270 return CompletionCallback(); | 272 return CompletionCallback(); |
271 } | 273 } |
272 | 274 |
273 } // namespace pp | 275 } // namespace pp |
274 | 276 |
275 #endif // PPAPI_CPP_COMPLETION_CALLBACK_H_ | 277 #endif // PPAPI_CPP_COMPLETION_CALLBACK_H_ |
OLD | NEW |