OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |