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

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: 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
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 938 matching lines...) Expand 10 before | Expand all | Expand 10 after
949 case Resource::LinkSubresource: 949 case Resource::LinkSubresource:
950 return "Link subresource"; 950 return "Link subresource";
951 case Resource::TextTrack: 951 case Resource::TextTrack:
952 return "Text track"; 952 return "Text track";
953 case Resource::Shader: 953 case Resource::Shader:
954 return "Shader"; 954 return "Shader";
955 case Resource::ImportResource: 955 case Resource::ImportResource:
956 return "Imported resource"; 956 return "Imported resource";
957 case Resource::Media: 957 case Resource::Media:
958 return "Media"; 958 return "Media";
959 case Resource::Manifest:
960 return "Manifest";
959 } 961 }
960 ASSERT_NOT_REACHED(); 962 ASSERT_NOT_REACHED();
961 return initatorTypeNameToString(initiatorInfo.name); 963 return initatorTypeNameToString(initiatorInfo.name);
962 } 964 }
963 965
964 #if !LOG_DISABLED 966 #if !LOG_DISABLED
965 const char* ResourceTypeName(Resource::Type type) 967 const char* ResourceTypeName(Resource::Type type)
966 { 968 {
967 switch (type) { 969 switch (type) {
968 case Resource::MainResource: 970 case Resource::MainResource:
(...skipping 17 matching lines...) Expand all
986 case Resource::LinkSubresource: 988 case Resource::LinkSubresource:
987 return "LinkSubresource"; 989 return "LinkSubresource";
988 case Resource::TextTrack: 990 case Resource::TextTrack:
989 return "TextTrack"; 991 return "TextTrack";
990 case Resource::Shader: 992 case Resource::Shader:
991 return "Shader"; 993 return "Shader";
992 case Resource::ImportResource: 994 case Resource::ImportResource:
993 return "ImportResource"; 995 return "ImportResource";
994 case Resource::Media: 996 case Resource::Media:
995 return "Media"; 997 return "Media";
998 case Resource::Manifest:
999 return "Manifest";
996 } 1000 }
997 ASSERT_NOT_REACHED(); 1001 ASSERT_NOT_REACHED();
998 return "Unknown"; 1002 return "Unknown";
999 } 1003 }
1000 #endif // !LOG_DISABLED 1004 #endif // !LOG_DISABLED
1001 1005
1002 } 1006 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698