OLD | NEW |
1 /* | 1 /* |
2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) | 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) |
3 Copyright (C) 2001 Dirk Mueller (mueller@kde.org) | 3 Copyright (C) 2001 Dirk Mueller (mueller@kde.org) |
4 Copyright (C) 2002 Waldo Bastian (bastian@kde.org) | 4 Copyright (C) 2002 Waldo Bastian (bastian@kde.org) |
5 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 5 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
6 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
rights reserved. | 6 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
rights reserved. |
7 | 7 |
8 This library is free software; you can redistribute it and/or | 8 This library is free software; you can redistribute it and/or |
9 modify it under the terms of the GNU Library General Public | 9 modify it under the terms of the GNU Library General Public |
10 License as published by the Free Software Foundation; either | 10 License as published by the Free Software Foundation; either |
(...skipping 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1099 case Resource::LinkPreload: | 1099 case Resource::LinkPreload: |
1100 case Resource::TextTrack: | 1100 case Resource::TextTrack: |
1101 case Resource::Media: | 1101 case Resource::Media: |
1102 case Resource::Manifest: | 1102 case Resource::Manifest: |
1103 return false; | 1103 return false; |
1104 } | 1104 } |
1105 ASSERT_NOT_REACHED(); | 1105 ASSERT_NOT_REACHED(); |
1106 return false; | 1106 return false; |
1107 } | 1107 } |
1108 | 1108 |
1109 // Do not modify existing strings below because they are used as UMA names. | |
1110 // https://crbug.com/579496 | |
1111 const char* Resource::resourceTypeName(Resource::Type type) | |
1112 { | |
1113 switch (type) { | |
1114 case Resource::MainResource: | |
1115 return "MainResource"; | |
1116 case Resource::Image: | |
1117 return "Image"; | |
1118 case Resource::CSSStyleSheet: | |
1119 return "CSSStyleSheet"; | |
1120 case Resource::Script: | |
1121 return "Script"; | |
1122 case Resource::Font: | |
1123 return "Font"; | |
1124 case Resource::Raw: | |
1125 return "Raw"; | |
1126 case Resource::SVGDocument: | |
1127 return "SVGDocument"; | |
1128 case Resource::XSLStyleSheet: | |
1129 return "XSLStyleSheet"; | |
1130 case Resource::LinkPrefetch: | |
1131 return "LinkPrefetch"; | |
1132 case Resource::LinkPreload: | |
1133 return "LinkPreload"; | |
1134 case Resource::TextTrack: | |
1135 return "TextTrack"; | |
1136 case Resource::ImportResource: | |
1137 return "ImportResource"; | |
1138 case Resource::Media: | |
1139 return "Media"; | |
1140 case Resource::Manifest: | |
1141 return "Manifest"; | |
1142 } | |
1143 ASSERT_NOT_REACHED(); | |
1144 return "Unknown"; | |
1145 } | |
1146 | |
1147 } // namespace blink | 1109 } // namespace blink |
OLD | NEW |