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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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) 2012 Google, Inc. All Rights Reserved. 2 * Copyright (C) 2012 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 114
115 template<> 115 template<>
116 class PLATFORM_EXPORT SupplementTracing<true> : public GarbageCollectedMixin { } ; 116 class PLATFORM_EXPORT SupplementTracing<true> : public GarbageCollectedMixin { } ;
117 117
118 template<> 118 template<>
119 class GC_PLUGIN_IGNORE("crbug.com/476419") PLATFORM_EXPORT SupplementTracing<fal se> { 119 class GC_PLUGIN_IGNORE("crbug.com/476419") PLATFORM_EXPORT SupplementTracing<fal se> {
120 public: 120 public:
121 virtual ~SupplementTracing() { } 121 virtual ~SupplementTracing() { }
122 // FIXME: Oilpan: this trace() method is only provided to minimize 122 // FIXME: Oilpan: this trace() method is only provided to minimize
123 // the use of ENABLE(OILPAN) for Supplements deriving from the 123 // the use of ENABLE(OILPAN) for Supplements deriving from the
124 // transition type WillBeHeapSupplement<>. 124 // transition type HeapSupplement<>.
125 // 125 //
126 // When that transition type is removed (or its use is substantially 126 // When that transition type is removed (or its use is substantially
127 // reduced), remove this dummy trace method also. 127 // reduced), remove this dummy trace method also.
128 DEFINE_INLINE_VIRTUAL_TRACE() { } 128 DEFINE_INLINE_VIRTUAL_TRACE() { }
129 }; 129 };
130 130
131 template<typename T, bool isGarbageCollected = false> 131 template<typename T, bool isGarbageCollected = false>
132 class SupplementBase : public SupplementTracing<isGarbageCollected> { 132 class SupplementBase : public SupplementTracing<isGarbageCollected> {
133 public: 133 public:
134 #if ENABLE(SECURITY_ASSERT) 134 #if ENABLE(SECURITY_ASSERT)
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 }; 237 };
238 238
239 template<typename T> 239 template<typename T>
240 struct ThreadingTrait<SupplementableBase<T, true>> { 240 struct ThreadingTrait<SupplementableBase<T, true>> {
241 static const ThreadAffinity Affinity = ThreadingTrait<T>::Affinity; 241 static const ThreadAffinity Affinity = ThreadingTrait<T>::Affinity;
242 }; 242 };
243 243
244 } // namespace blink 244 } // namespace blink
245 245
246 #endif // Supplementable_h 246 #endif // Supplementable_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/PopupMenu.h ('k') | third_party/WebKit/Source/platform/Widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698