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

Side by Side Diff: third_party/WebKit/Source/core/timing/PerformanceTiming.cpp

Issue 2746113002: platform/loader: move network/Resource* to loader/fetch (Closed)
Patch Set: git rebase master 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 24 matching lines...) Expand all
35 #include "core/css/CSSTiming.h" 35 #include "core/css/CSSTiming.h"
36 #include "core/dom/Document.h" 36 #include "core/dom/Document.h"
37 #include "core/dom/DocumentParserTiming.h" 37 #include "core/dom/DocumentParserTiming.h"
38 #include "core/dom/DocumentTiming.h" 38 #include "core/dom/DocumentTiming.h"
39 #include "core/frame/LocalFrame.h" 39 #include "core/frame/LocalFrame.h"
40 #include "core/loader/DocumentLoadTiming.h" 40 #include "core/loader/DocumentLoadTiming.h"
41 #include "core/loader/DocumentLoader.h" 41 #include "core/loader/DocumentLoader.h"
42 #include "core/loader/FrameLoader.h" 42 #include "core/loader/FrameLoader.h"
43 #include "core/paint/PaintTiming.h" 43 #include "core/paint/PaintTiming.h"
44 #include "core/timing/PerformanceBase.h" 44 #include "core/timing/PerformanceBase.h"
45 #include "platform/network/ResourceLoadTiming.h" 45 #include "platform/loader/fetch/ResourceLoadTiming.h"
46 #include "platform/network/ResourceResponse.h" 46 #include "platform/loader/fetch/ResourceResponse.h"
47 47
48 // Legacy support for NT1(https://www.w3.org/TR/navigation-timing/). 48 // Legacy support for NT1(https://www.w3.org/TR/navigation-timing/).
49 namespace blink { 49 namespace blink {
50 50
51 static unsigned long long toIntegerMilliseconds(double seconds) { 51 static unsigned long long toIntegerMilliseconds(double seconds) {
52 ASSERT(seconds >= 0); 52 ASSERT(seconds >= 0);
53 double clampedSeconds = PerformanceBase::clampTimeResolution(seconds); 53 double clampedSeconds = PerformanceBase::clampTimeResolution(seconds);
54 return static_cast<unsigned long long>(clampedSeconds * 1000.0); 54 return static_cast<unsigned long long>(clampedSeconds * 1000.0);
55 } 55 }
56 56
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 535
536 return timing->pseudoWallTimeToMonotonicTime( 536 return timing->pseudoWallTimeToMonotonicTime(
537 toDoubleSeconds(integerMilliseconds)); 537 toDoubleSeconds(integerMilliseconds));
538 } 538 }
539 539
540 DEFINE_TRACE(PerformanceTiming) { 540 DEFINE_TRACE(PerformanceTiming) {
541 ContextClient::trace(visitor); 541 ContextClient::trace(visitor);
542 } 542 }
543 543
544 } // namespace blink 544 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698