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

Side by Side Diff: Source/core/inspector/InspectorTimelineAgent.cpp

Issue 156623005: Add transfer size paramater to didFinishLoading [3/3] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed comments Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/inspector/InspectorTimelineAgent.h ('k') | Source/core/loader/FrameFetchContext.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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 { 747 {
748 String requestId = IdentifiersFactory::requestId(identifier); 748 String requestId = IdentifiersFactory::requestId(identifier);
749 appendRecord(TimelineRecordFactory::createResourceReceiveResponseData(reques tId, response), TimelineRecordType::ResourceReceiveResponse, false, frame); 749 appendRecord(TimelineRecordFactory::createResourceReceiveResponseData(reques tId, response), TimelineRecordType::ResourceReceiveResponse, false, frame);
750 } 750 }
751 751
752 void InspectorTimelineAgent::didFinishLoadingResource(unsigned long identifier, bool didFail, double finishTime, Frame* frame) 752 void InspectorTimelineAgent::didFinishLoadingResource(unsigned long identifier, bool didFail, double finishTime, Frame* frame)
753 { 753 {
754 appendRecord(TimelineRecordFactory::createResourceFinishData(IdentifiersFact ory::requestId(identifier), didFail, finishTime * 1000), TimelineRecordType::Res ourceFinish, false, frame); 754 appendRecord(TimelineRecordFactory::createResourceFinishData(IdentifiersFact ory::requestId(identifier), didFail, finishTime * 1000), TimelineRecordType::Res ourceFinish, false, frame);
755 } 755 }
756 756
757 void InspectorTimelineAgent::didFinishLoading(unsigned long identifier, Document Loader* loader, double monotonicFinishTime) 757 void InspectorTimelineAgent::didFinishLoading(unsigned long identifier, Document Loader* loader, double monotonicFinishTime, int64_t)
758 { 758 {
759 double finishTime = 0.0; 759 double finishTime = 0.0;
760 // FIXME: Expose all of the timing details to inspector and have it calculat e finishTime. 760 // FIXME: Expose all of the timing details to inspector and have it calculat e finishTime.
761 if (monotonicFinishTime) 761 if (monotonicFinishTime)
762 finishTime = loader->timing()->monotonicTimeToPseudoWallTime(monotonicFi nishTime); 762 finishTime = loader->timing()->monotonicTimeToPseudoWallTime(monotonicFi nishTime);
763 763
764 didFinishLoadingResource(identifier, false, finishTime, loader->frame()); 764 didFinishLoadingResource(identifier, false, finishTime, loader->frame());
765 } 765 }
766 766
767 void InspectorTimelineAgent::didFailLoading(unsigned long identifier, DocumentLo ader* loader, const ResourceError& error) 767 void InspectorTimelineAgent::didFailLoading(unsigned long identifier, DocumentLo ader* loader, const ResourceError& error)
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
1268 1268
1269 #ifndef NDEBUG 1269 #ifndef NDEBUG
1270 bool TimelineRecordStack::isOpenRecordOfType(const String& type) 1270 bool TimelineRecordStack::isOpenRecordOfType(const String& type)
1271 { 1271 {
1272 return !m_stack.isEmpty() && m_stack.last().type == type; 1272 return !m_stack.isEmpty() && m_stack.last().type == type;
1273 } 1273 }
1274 #endif 1274 #endif
1275 1275
1276 } // namespace WebCore 1276 } // namespace WebCore
1277 1277
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorTimelineAgent.h ('k') | Source/core/loader/FrameFetchContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698