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

Side by Side Diff: third_party/WebKit/Source/core/fetch/Resource.cpp

Issue 2164553002: Refactoring: Hide or remove some methods of Resource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: (rebase) Created 4 years, 5 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 | « third_party/WebKit/Source/core/fetch/Resource.h ('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) 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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/fetch/Resource.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698