OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009-2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2009-2010 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 14 matching lines...) Expand all Loading... |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef CrossThreadTask_h | 31 #ifndef CrossThreadTask_h |
32 #define CrossThreadTask_h | 32 #define CrossThreadTask_h |
33 | 33 |
34 #include <memory> | 34 #include <memory> |
35 #include "ScriptExecutionContext.h" | 35 #include "core/dom/ScriptExecutionContext.h" |
36 #include "core/platform/CrossThreadCopier.h" | 36 #include "core/platform/CrossThreadCopier.h" |
37 #include <wtf/PassOwnPtr.h> | 37 #include <wtf/PassOwnPtr.h> |
38 #include <wtf/PassRefPtr.h> | 38 #include <wtf/PassRefPtr.h> |
39 #include <wtf/TypeTraits.h> | 39 #include <wtf/TypeTraits.h> |
40 | 40 |
41 namespace WebCore { | 41 namespace WebCore { |
42 | 42 |
43 // Traits for the CrossThreadTask. | 43 // Traits for the CrossThreadTask. |
44 template<typename T> struct CrossThreadTaskTraits { | 44 template<typename T> struct CrossThreadTaskTraits { |
45 typedef const T& ParamType; | 45 typedef const T& ParamType; |
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 method, | 468 method, |
469 CrossThreadCopier<P1>::co
py(parameter1), CrossThreadCopier<P2>::copy(parameter2), | 469 CrossThreadCopier<P1>::co
py(parameter1), CrossThreadCopier<P2>::copy(parameter2), |
470 CrossThreadCopier<P3>::co
py(parameter3), CrossThreadCopier<P4>::copy(parameter4), | 470 CrossThreadCopier<P3>::co
py(parameter3), CrossThreadCopier<P4>::copy(parameter4), |
471 CrossThreadCopier<P5>::co
py(parameter5), CrossThreadCopier<P6>::copy(parameter6), | 471 CrossThreadCopier<P5>::co
py(parameter5), CrossThreadCopier<P6>::copy(parameter6), |
472 CrossThreadCopier<P7>::co
py(parameter7), CrossThreadCopier<P8>::copy(parameter8)); | 472 CrossThreadCopier<P7>::co
py(parameter7), CrossThreadCopier<P8>::copy(parameter8)); |
473 } | 473 } |
474 | 474 |
475 } // namespace WebCore | 475 } // namespace WebCore |
476 | 476 |
477 #endif // CrossThreadTask_h | 477 #endif // CrossThreadTask_h |
OLD | NEW |