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

Side by Side Diff: third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp

Issue 2712833002: DevTools: Show decoded body length for network requests on timeline. (Closed)
Patch Set: rebaseline Created 3 years, 9 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/platform/loader/fetch/FetchContext.cpp ('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) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All 5 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
6 rights reserved. 6 rights reserved.
7 Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/ 7 Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/
8 8
9 This library is free software; you can redistribute it and/or 9 This library is free software; you can redistribute it and/or
10 modify it under the terms of the GNU Library General Public 10 modify it under the terms of the GNU Library General Public
(...skipping 1171 matching lines...) Expand 10 before | Expand all | Expand 10 after
1182 info->addFinalTransferSize(encodedDataLength == -1 ? 0 1182 info->addFinalTransferSize(encodedDataLength == -1 ? 0
1183 : encodedDataLength); 1183 : encodedDataLength);
1184 1184
1185 if (resource->options().requestInitiatorContext == DocumentContext) 1185 if (resource->options().requestInitiatorContext == DocumentContext)
1186 context().addResourceTiming(*info); 1186 context().addResourceTiming(*info);
1187 resource->reportResourceTimingToClients(*info); 1187 resource->reportResourceTimingToClients(*info);
1188 } 1188 }
1189 } 1189 }
1190 1190
1191 context().dispatchDidFinishLoading(resource->identifier(), finishTime, 1191 context().dispatchDidFinishLoading(resource->identifier(), finishTime,
1192 encodedDataLength); 1192 encodedDataLength,
1193 resource->response().decodedBodyLength());
1193 1194
1194 if (type == DidFinishLoading) 1195 if (type == DidFinishLoading)
1195 resource->finish(finishTime); 1196 resource->finish(finishTime);
1196 1197
1197 handleLoadCompletion(resource); 1198 handleLoadCompletion(resource);
1198 } 1199 }
1199 1200
1200 void ResourceFetcher::handleLoaderError(Resource* resource, 1201 void ResourceFetcher::handleLoaderError(Resource* resource,
1201 const ResourceError& error) { 1202 const ResourceError& error) {
1202 DCHECK(resource); 1203 DCHECK(resource);
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
1540 visitor->trace(m_context); 1541 visitor->trace(m_context);
1541 visitor->trace(m_archive); 1542 visitor->trace(m_archive);
1542 visitor->trace(m_loaders); 1543 visitor->trace(m_loaders);
1543 visitor->trace(m_nonBlockingLoaders); 1544 visitor->trace(m_nonBlockingLoaders);
1544 visitor->trace(m_documentResources); 1545 visitor->trace(m_documentResources);
1545 visitor->trace(m_preloads); 1546 visitor->trace(m_preloads);
1546 visitor->trace(m_resourceTimingInfoMap); 1547 visitor->trace(m_resourceTimingInfoMap);
1547 } 1548 }
1548 1549
1549 } // namespace blink 1550 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/loader/fetch/FetchContext.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698