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

Side by Side Diff: Source/wtf/TypeTraits.h

Issue 267323004: Oilpan: Move ThreadableWebSocketChannelClientWrapper to Oilpan's heap (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2009, 2010 Google Inc. All rights reserved. 3 * Copyright (C) 2009, 2010 Google Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 }; 217 };
218 218
219 template <typename T, template <class V> class OuterTemplate> struct RemoveT emplate { 219 template <typename T, template <class V> class OuterTemplate> struct RemoveT emplate {
220 typedef T Type; 220 typedef T Type;
221 }; 221 };
222 222
223 template <typename T, template <class V> class OuterTemplate> struct RemoveT emplate<OuterTemplate<T>, OuterTemplate> { 223 template <typename T, template <class V> class OuterTemplate> struct RemoveT emplate<OuterTemplate<T>, OuterTemplate> {
224 typedef T Type; 224 typedef T Type;
225 }; 225 };
226 226
227 template <typename T, template <class V, class W> class OuterTemplate> struc t RemoveTemplate2 {
228 typedef T Type;
229 };
230
231 template <typename T, template <class V, class W> class OuterTemplate> struc t RemoveTemplate2<OuterTemplate<T, T>, OuterTemplate> {
232 typedef T Type;
233 };
234
227 template <typename T> struct RemoveConst { 235 template <typename T> struct RemoveConst {
228 typedef T Type; 236 typedef T Type;
229 }; 237 };
230 238
231 template <typename T> struct RemoveConst<const T> { 239 template <typename T> struct RemoveConst<const T> {
232 typedef T Type; 240 typedef T Type;
233 }; 241 };
234 242
235 template <typename T> struct RemoveVolatile { 243 template <typename T> struct RemoveVolatile {
236 typedef T Type; 244 typedef T Type;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 // Collection Traits. It helps make the code more readable. 326 // Collection Traits. It helps make the code more readable.
319 template<typename Traits> 327 template<typename Traits>
320 class ShouldBeTraced { 328 class ShouldBeTraced {
321 public: 329 public:
322 static const bool value = Traits::template NeedsTracingLazily<>::value; 330 static const bool value = Traits::template NeedsTracingLazily<>::value;
323 }; 331 };
324 332
325 } // namespace WTF 333 } // namespace WTF
326 334
327 #endif // TypeTraits_h 335 #endif // TypeTraits_h
OLDNEW
« Source/platform/CrossThreadCopier.h ('K') | « Source/platform/CrossThreadCopier.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698