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