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

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

Issue 467193002: Cleanup namespace usage in Source/core/platform/[A-Z]*.h (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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
« no previous file with comments | « Source/platform/StorageQuotaCallbacks.h ('k') | Source/platform/Task.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 // No tracing of off-heap supplements. We should not have any Supplement able 277 // No tracing of off-heap supplements. We should not have any Supplement able
278 // object on the heap. Either the object is HeapSupplementable or if it is 278 // object on the heap. Either the object is HeapSupplementable or if it is
279 // off heap it should use PersistentHeapSupplementable to trace any on-h eap 279 // off heap it should use PersistentHeapSupplementable to trace any on-h eap
280 // supplements. 280 // supplements.
281 COMPILE_ASSERT(!IsGarbageCollectedType<T>::value, GarbageCollectedObject MustBeHeapSupplementable); 281 COMPILE_ASSERT(!IsGarbageCollectedType<T>::value, GarbageCollectedObject MustBeHeapSupplementable);
282 SupplementableBase<T, false>::trace(visitor); 282 SupplementableBase<T, false>::trace(visitor);
283 } 283 }
284 }; 284 };
285 285
286 template<typename T> 286 template<typename T>
287 struct ThreadingTrait<blink::SupplementBase<T, true> > { 287 struct ThreadingTrait<SupplementBase<T, true> > {
288 static const ThreadAffinity Affinity = ThreadingTrait<T>::Affinity; 288 static const ThreadAffinity Affinity = ThreadingTrait<T>::Affinity;
289 }; 289 };
290 290
291 template<typename T> 291 template<typename T>
292 struct ThreadingTrait<blink::SupplementableBase<T, true> > { 292 struct ThreadingTrait<SupplementableBase<T, true> > {
293 static const ThreadAffinity Affinity = ThreadingTrait<T>::Affinity; 293 static const ThreadAffinity Affinity = ThreadingTrait<T>::Affinity;
294 }; 294 };
295 295
296 } // namespace blink 296 } // namespace blink
297 297
298 #endif // Supplementable_h 298 #endif // Supplementable_h
OLDNEW
« no previous file with comments | « Source/platform/StorageQuotaCallbacks.h ('k') | Source/platform/Task.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698