| 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 21 matching lines...) Expand all Loading... |
| 32 #define CrossThreadCopier_h | 32 #define CrossThreadCopier_h |
| 33 | 33 |
| 34 #include "platform/PlatformExport.h" | 34 #include "platform/PlatformExport.h" |
| 35 #include "wtf/Assertions.h" | 35 #include "wtf/Assertions.h" |
| 36 #include "wtf/Forward.h" | 36 #include "wtf/Forward.h" |
| 37 #include "wtf/Functional.h" // FunctionThreadAffinity | 37 #include "wtf/Functional.h" // FunctionThreadAffinity |
| 38 #include "wtf/PassRefPtr.h" | 38 #include "wtf/PassRefPtr.h" |
| 39 #include "wtf/RefPtr.h" | 39 #include "wtf/RefPtr.h" |
| 40 #include "wtf/ThreadSafeRefCounted.h" | 40 #include "wtf/ThreadSafeRefCounted.h" |
| 41 #include "wtf/TypeTraits.h" | 41 #include "wtf/TypeTraits.h" |
| 42 #include "wtf/WeakPtr.h" | |
| 43 #include <memory> | 42 #include <memory> |
| 44 | 43 |
| 45 class SkRefCnt; | 44 class SkRefCnt; |
| 46 | 45 |
| 47 namespace WTF { | 46 namespace WTF { |
| 48 | 47 |
| 49 template <typename T> | 48 template <typename T> |
| 50 class PassedWrapper; | 49 class PassedWrapper; |
| 51 | 50 |
| 52 } | 51 } |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 template <> | 185 template <> |
| 187 struct CrossThreadCopier<ResourceResponse> { | 186 struct CrossThreadCopier<ResourceResponse> { |
| 188 STATIC_ONLY(CrossThreadCopier); | 187 STATIC_ONLY(CrossThreadCopier); |
| 189 typedef WTF::PassedWrapper<std::unique_ptr<CrossThreadResourceResponseData>>
Type; | 188 typedef WTF::PassedWrapper<std::unique_ptr<CrossThreadResourceResponseData>>
Type; |
| 190 PLATFORM_EXPORT static Type copy(const ResourceResponse&); | 189 PLATFORM_EXPORT static Type copy(const ResourceResponse&); |
| 191 }; | 190 }; |
| 192 | 191 |
| 193 } // namespace blink | 192 } // namespace blink |
| 194 | 193 |
| 195 #endif // CrossThreadCopier_h | 194 #endif // CrossThreadCopier_h |
| OLD | NEW |