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

Side by Side Diff: Source/platform/heap/Handle.h

Issue 426863003: Clean up remaining uses of WebCore namespace (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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 | Annotate | Revision Log
« no previous file with comments | « Source/platform/graphics/RecordingImageBufferSurface.cpp ('k') | no next file » | 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) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 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 679 matching lines...) Expand 10 before | Expand all | Expand 10 after
690 { 690 {
691 visitor->trace(*t); 691 visitor->trace(*t);
692 } 692 }
693 }; 693 };
694 694
695 template <typename T> struct RemoveHeapPointerWrapperTypes { 695 template <typename T> struct RemoveHeapPointerWrapperTypes {
696 typedef typename WTF::RemoveTemplate<typename WTF::RemoveTemplate<typename W TF::RemoveTemplate<T, Member>::Type, WeakMember>::Type, RawPtr>::Type Type; 696 typedef typename WTF::RemoveTemplate<typename WTF::RemoveTemplate<typename W TF::RemoveTemplate<T, Member>::Type, WeakMember>::Type, RawPtr>::Type Type;
697 }; 697 };
698 698
699 template<typename T> 699 template<typename T>
700 struct TraceIfNeeded : public TraceIfEnabled<T, WebCore::IsGarbageCollectedType< typename RemoveHeapPointerWrapperTypes<typename WTF::RemovePointer<T>::Type>::Ty pe>::value> { }; 700 struct TraceIfNeeded : public TraceIfEnabled<T, blink::IsGarbageCollectedType<ty pename RemoveHeapPointerWrapperTypes<typename WTF::RemovePointer<T>::Type>::Type >::value> { };
701 701
702 // This trace trait for std::pair will null weak members if their referent is 702 // This trace trait for std::pair will null weak members if their referent is
703 // collected. If you have a collection that contain weakness it does not remove 703 // collected. If you have a collection that contain weakness it does not remove
704 // entries from the collection that contain nulled weak members. 704 // entries from the collection that contain nulled weak members.
705 template<typename T, typename U> 705 template<typename T, typename U>
706 class TraceTrait<std::pair<T, U> > { 706 class TraceTrait<std::pair<T, U> > {
707 public: 707 public:
708 static const bool firstNeedsTracing = WTF::NeedsTracing<T>::value || WTF::Is Weak<T>::value; 708 static const bool firstNeedsTracing = WTF::NeedsTracing<T>::value || WTF::Is Weak<T>::value;
709 static const bool secondNeedsTracing = WTF::NeedsTracing<U>::value || WTF::I sWeak<U>::value; 709 static const bool secondNeedsTracing = WTF::NeedsTracing<U>::value || WTF::I sWeak<U>::value;
710 static void trace(Visitor* visitor, std::pair<T, U>* pair) 710 static void trace(Visitor* visitor, std::pair<T, U>* pair)
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
1199 struct ParamStorageTraits<T*> : public PointerParamStorageTraits<T*, blink::IsGa rbageCollectedType<T>::value> { 1199 struct ParamStorageTraits<T*> : public PointerParamStorageTraits<T*, blink::IsGa rbageCollectedType<T>::value> {
1200 }; 1200 };
1201 1201
1202 template<typename T> 1202 template<typename T>
1203 struct ParamStorageTraits<RawPtr<T> > : public PointerParamStorageTraits<T*, bli nk::IsGarbageCollectedType<T>::value> { 1203 struct ParamStorageTraits<RawPtr<T> > : public PointerParamStorageTraits<T*, bli nk::IsGarbageCollectedType<T>::value> {
1204 }; 1204 };
1205 1205
1206 } // namespace WTF 1206 } // namespace WTF
1207 1207
1208 #endif 1208 #endif
OLDNEW
« no previous file with comments | « Source/platform/graphics/RecordingImageBufferSurface.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698