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

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

Issue 295063002: [NotLanded] Implement the fetching algorithm of the Web Manifest. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: review comments Created 6 years, 3 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 | « Source/core/fetch/Resource.h ('k') | Source/core/fetch/ResourceFetcher.h » ('j') | 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 920 matching lines...) Expand 10 before | Expand all | Expand 10 after
931 if (initiatorTypeName == FetchInitiatorTypeNames::css) 931 if (initiatorTypeName == FetchInitiatorTypeNames::css)
932 return "CSS resource"; 932 return "CSS resource";
933 if (initiatorTypeName == FetchInitiatorTypeNames::document) 933 if (initiatorTypeName == FetchInitiatorTypeNames::document)
934 return "Document"; 934 return "Document";
935 if (initiatorTypeName == FetchInitiatorTypeNames::icon) 935 if (initiatorTypeName == FetchInitiatorTypeNames::icon)
936 return "Icon"; 936 return "Icon";
937 if (initiatorTypeName == FetchInitiatorTypeNames::internal) 937 if (initiatorTypeName == FetchInitiatorTypeNames::internal)
938 return "Internal resource"; 938 return "Internal resource";
939 if (initiatorTypeName == FetchInitiatorTypeNames::link) 939 if (initiatorTypeName == FetchInitiatorTypeNames::link)
940 return "Link element resource"; 940 return "Link element resource";
941 if (initiatorTypeName == FetchInitiatorTypeNames::manifest)
942 return "Manifest";
941 if (initiatorTypeName == FetchInitiatorTypeNames::processinginstruction) 943 if (initiatorTypeName == FetchInitiatorTypeNames::processinginstruction)
942 return "Processing instruction"; 944 return "Processing instruction";
943 if (initiatorTypeName == FetchInitiatorTypeNames::texttrack) 945 if (initiatorTypeName == FetchInitiatorTypeNames::texttrack)
944 return "Text track"; 946 return "Text track";
945 if (initiatorTypeName == FetchInitiatorTypeNames::xml) 947 if (initiatorTypeName == FetchInitiatorTypeNames::xml)
946 return "XML resource"; 948 return "XML resource";
947 if (initiatorTypeName == FetchInitiatorTypeNames::xmlhttprequest) 949 if (initiatorTypeName == FetchInitiatorTypeNames::xmlhttprequest)
948 return "XMLHttpRequest"; 950 return "XMLHttpRequest";
949 951
950 return "Resource"; 952 return "Resource";
(...skipping 21 matching lines...) Expand all
972 case Resource::LinkPrefetch: 974 case Resource::LinkPrefetch:
973 return "Link prefetch resource"; 975 return "Link prefetch resource";
974 case Resource::LinkSubresource: 976 case Resource::LinkSubresource:
975 return "Link subresource"; 977 return "Link subresource";
976 case Resource::TextTrack: 978 case Resource::TextTrack:
977 return "Text track"; 979 return "Text track";
978 case Resource::ImportResource: 980 case Resource::ImportResource:
979 return "Imported resource"; 981 return "Imported resource";
980 case Resource::Media: 982 case Resource::Media:
981 return "Media"; 983 return "Media";
984 case Resource::Manifest:
985 return "Manifest";
982 } 986 }
983 ASSERT_NOT_REACHED(); 987 ASSERT_NOT_REACHED();
984 return initatorTypeNameToString(initiatorInfo.name); 988 return initatorTypeNameToString(initiatorInfo.name);
985 } 989 }
986 990
987 #if !LOG_DISABLED 991 #if !LOG_DISABLED
988 const char* ResourceTypeName(Resource::Type type) 992 const char* ResourceTypeName(Resource::Type type)
989 { 993 {
990 switch (type) { 994 switch (type) {
991 case Resource::MainResource: 995 case Resource::MainResource:
(...skipping 15 matching lines...) Expand all
1007 case Resource::LinkPrefetch: 1011 case Resource::LinkPrefetch:
1008 return "LinkPrefetch"; 1012 return "LinkPrefetch";
1009 case Resource::LinkSubresource: 1013 case Resource::LinkSubresource:
1010 return "LinkSubresource"; 1014 return "LinkSubresource";
1011 case Resource::TextTrack: 1015 case Resource::TextTrack:
1012 return "TextTrack"; 1016 return "TextTrack";
1013 case Resource::ImportResource: 1017 case Resource::ImportResource:
1014 return "ImportResource"; 1018 return "ImportResource";
1015 case Resource::Media: 1019 case Resource::Media:
1016 return "Media"; 1020 return "Media";
1021 case Resource::Manifest:
1022 return "Manifest";
1017 } 1023 }
1018 ASSERT_NOT_REACHED(); 1024 ASSERT_NOT_REACHED();
1019 return "Unknown"; 1025 return "Unknown";
1020 } 1026 }
1021 #endif // !LOG_DISABLED 1027 #endif // !LOG_DISABLED
1022 1028
1023 } 1029 }
OLDNEW
« no previous file with comments | « Source/core/fetch/Resource.h ('k') | Source/core/fetch/ResourceFetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698