| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 924 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 935 static void assignIfConvertable(ConvertableToTraceFormat*& left, ...) | 935 static void assignIfConvertable(ConvertableToTraceFormat*& left, ...) |
| 936 { | 936 { |
| 937 left = 0; | 937 left = 0; |
| 938 } | 938 } |
| 939 static void assignIfConvertable(ConvertableToTraceFormat*& left, Convertable
ToTraceFormat* const& right) | 939 static void assignIfConvertable(ConvertableToTraceFormat*& left, Convertable
ToTraceFormat* const& right) |
| 940 { | 940 { |
| 941 left = right; | 941 left = right; |
| 942 } | 942 } |
| 943 }; | 943 }; |
| 944 | 944 |
| 945 template<typename T> struct ConvertableToTraceFormatTraits<PassRefPtr<T> > { | 945 template<typename T> struct ConvertableToTraceFormatTraits<PassRefPtr<T>> { |
| 946 static const bool isConvertable = WTF::IsSubclass<T, TraceEvent::Convertable
ToTraceFormat>::value; | 946 static const bool isConvertable = WTF::IsSubclass<T, TraceEvent::Convertable
ToTraceFormat>::value; |
| 947 static void assignIfConvertable(ConvertableToTraceFormat*& left, const PassR
efPtr<T>& right) | 947 static void assignIfConvertable(ConvertableToTraceFormat*& left, const PassR
efPtr<T>& right) |
| 948 { | 948 { |
| 949 ConvertableToTraceFormatTraits<T*>::assignIfConvertable(left, right.get(
)); | 949 ConvertableToTraceFormatTraits<T*>::assignIfConvertable(left, right.get(
)); |
| 950 } | 950 } |
| 951 }; | 951 }; |
| 952 | 952 |
| 953 template<typename T> bool isConvertableToTraceFormat(const T&) | 953 template<typename T> bool isConvertableToTraceFormat(const T&) |
| 954 { | 954 { |
| 955 return ConvertableToTraceFormatTraits<T>::isConvertable; | 955 return ConvertableToTraceFormatTraits<T>::isConvertable; |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1125 const char* m_categoryGroup; | 1125 const char* m_categoryGroup; |
| 1126 const char* m_name; | 1126 const char* m_name; |
| 1127 IDType m_id; | 1127 IDType m_id; |
| 1128 }; | 1128 }; |
| 1129 | 1129 |
| 1130 } // namespace TraceEvent | 1130 } // namespace TraceEvent |
| 1131 | 1131 |
| 1132 } // namespace blink | 1132 } // namespace blink |
| 1133 | 1133 |
| 1134 #endif | 1134 #endif |
| OLD | NEW |