Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(409)

Side by Side Diff: third_party/WebKit/Source/platform/CrossThreadCopier.h

Issue 2300813003: Implement WTF::WeakPtr in terms of base::WeakPtr (Closed)
Patch Set: Add TODO Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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"
42 #include <memory> 43 #include <memory>
43 44
44 class SkRefCnt; 45 class SkRefCnt;
45 46
46 namespace WTF { 47 namespace WTF {
47 48
48 template <typename T> 49 template <typename T>
49 class PassedWrapper; 50 class PassedWrapper;
50 51
51 } 52 }
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 template <> 186 template <>
186 struct CrossThreadCopier<ResourceResponse> { 187 struct CrossThreadCopier<ResourceResponse> {
187 STATIC_ONLY(CrossThreadCopier); 188 STATIC_ONLY(CrossThreadCopier);
188 typedef WTF::PassedWrapper<std::unique_ptr<CrossThreadResourceResponseData>> Type; 189 typedef WTF::PassedWrapper<std::unique_ptr<CrossThreadResourceResponseData>> Type;
189 PLATFORM_EXPORT static Type copy(const ResourceResponse&); 190 PLATFORM_EXPORT static Type copy(const ResourceResponse&);
190 }; 191 };
191 192
192 } // namespace blink 193 } // namespace blink
193 194
194 #endif // CrossThreadCopier_h 195 #endif // CrossThreadCopier_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/ImageLoader.cpp ('k') | third_party/WebKit/Source/platform/fonts/FontFallbackList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698