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

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

Issue 114123005: Show media and VTT text tracks in the devtools. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressed feedback. Created 6 years, 8 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 889 matching lines...) Expand 10 before | Expand all | Expand 10 after
900 case Resource::LinkPrefetch: 900 case Resource::LinkPrefetch:
901 return "Link prefetch resource"; 901 return "Link prefetch resource";
902 case Resource::LinkSubresource: 902 case Resource::LinkSubresource:
903 return "Link subresource"; 903 return "Link subresource";
904 case Resource::TextTrack: 904 case Resource::TextTrack:
905 return "Text track"; 905 return "Text track";
906 case Resource::Shader: 906 case Resource::Shader:
907 return "Shader"; 907 return "Shader";
908 case Resource::ImportResource: 908 case Resource::ImportResource:
909 return "Imported resource"; 909 return "Imported resource";
910 case Resource::Media:
911 return "Media";
910 } 912 }
911 ASSERT_NOT_REACHED(); 913 ASSERT_NOT_REACHED();
912 return initatorTypeNameToString(initiatorInfo.name); 914 return initatorTypeNameToString(initiatorInfo.name);
913 } 915 }
914 916
915 #if !LOG_DISABLED 917 #if !LOG_DISABLED
916 const char* ResourceTypeName(Resource::Type type) 918 const char* ResourceTypeName(Resource::Type type)
917 { 919 {
918 switch (type) { 920 switch (type) {
919 case Resource::MainResource: 921 case Resource::MainResource:
(...skipping 15 matching lines...) Expand all
935 case Resource::LinkPrefetch: 937 case Resource::LinkPrefetch:
936 return "LinkPrefetch"; 938 return "LinkPrefetch";
937 case Resource::LinkSubresource: 939 case Resource::LinkSubresource:
938 return "LinkSubresource"; 940 return "LinkSubresource";
939 case Resource::TextTrack: 941 case Resource::TextTrack:
940 return "TextTrack"; 942 return "TextTrack";
941 case Resource::Shader: 943 case Resource::Shader:
942 return "Shader"; 944 return "Shader";
943 case Resource::ImportResource: 945 case Resource::ImportResource:
944 return "ImportResource"; 946 return "ImportResource";
947 case Resource::Media:
948 return "Media";
945 } 949 }
946 ASSERT_NOT_REACHED(); 950 ASSERT_NOT_REACHED();
947 return "Unknown"; 951 return "Unknown";
948 } 952 }
949 #endif // !LOG_DISABLED 953 #endif // !LOG_DISABLED
950 954
951 } 955 }
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