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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 struct CrossThreadCopier<WeakPtr<T>> | 172 struct CrossThreadCopier<WeakPtr<T>> |
173 : public CrossThreadCopierPassThrough<WeakPtr<T>> { | 173 : public CrossThreadCopierPassThrough<WeakPtr<T>> { |
174 STATIC_ONLY(CrossThreadCopier); | 174 STATIC_ONLY(CrossThreadCopier); |
175 }; | 175 }; |
176 | 176 |
177 template <typename T> | 177 template <typename T> |
178 struct CrossThreadCopier<WTF::PassedWrapper<T>> { | 178 struct CrossThreadCopier<WTF::PassedWrapper<T>> { |
179 STATIC_ONLY(CrossThreadCopier); | 179 STATIC_ONLY(CrossThreadCopier); |
180 using Type = WTF::PassedWrapper<typename CrossThreadCopier<T>::Type>; | 180 using Type = WTF::PassedWrapper<typename CrossThreadCopier<T>::Type>; |
181 static Type copy(WTF::PassedWrapper<T>&& value) { | 181 static Type copy(WTF::PassedWrapper<T>&& value) { |
182 return passed(CrossThreadCopier<T>::copy(value.moveOut())); | 182 return WTF::passed(CrossThreadCopier<T>::copy(value.moveOut())); |
183 } | 183 } |
184 }; | 184 }; |
185 | 185 |
186 template <> | 186 template <> |
187 struct CrossThreadCopier<KURL> { | 187 struct CrossThreadCopier<KURL> { |
188 STATIC_ONLY(CrossThreadCopier); | 188 STATIC_ONLY(CrossThreadCopier); |
189 typedef KURL Type; | 189 typedef KURL Type; |
190 PLATFORM_EXPORT static Type copy(const KURL&); | 190 PLATFORM_EXPORT static Type copy(const KURL&); |
191 }; | 191 }; |
192 | 192 |
(...skipping 23 matching lines...) Expand all Loading... |
216 struct CrossThreadCopier<ResourceResponse> { | 216 struct CrossThreadCopier<ResourceResponse> { |
217 STATIC_ONLY(CrossThreadCopier); | 217 STATIC_ONLY(CrossThreadCopier); |
218 typedef WTF::PassedWrapper<std::unique_ptr<CrossThreadResourceResponseData>> | 218 typedef WTF::PassedWrapper<std::unique_ptr<CrossThreadResourceResponseData>> |
219 Type; | 219 Type; |
220 PLATFORM_EXPORT static Type copy(const ResourceResponse&); | 220 PLATFORM_EXPORT static Type copy(const ResourceResponse&); |
221 }; | 221 }; |
222 | 222 |
223 } // namespace blink | 223 } // namespace blink |
224 | 224 |
225 #endif // CrossThreadCopier_h | 225 #endif // CrossThreadCopier_h |
OLD | NEW |