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

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

Issue 1857903002: Record parser blocking time for scripts inserted via doc.write (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 unsigned long long firstTextPaint() const; 89 unsigned long long firstTextPaint() const;
90 // The time the first paint operation for image was performed. 90 // The time the first paint operation for image was performed.
91 unsigned long long firstImagePaint() const; 91 unsigned long long firstImagePaint() const;
92 // The time of the first 'contentful' paint. A contentful paint is a paint 92 // The time of the first 'contentful' paint. A contentful paint is a paint
93 // that includes content of some kind (for example, text or image content). 93 // that includes content of some kind (for example, text or image content).
94 unsigned long long firstContentfulPaint() const; 94 unsigned long long firstContentfulPaint() const;
95 95
96 unsigned long long parseStart() const; 96 unsigned long long parseStart() const;
97 unsigned long long parseStop() const; 97 unsigned long long parseStop() const;
98 unsigned long long parseBlockedOnScriptLoadDuration() const; 98 unsigned long long parseBlockedOnScriptLoadDuration() const;
99 unsigned long long parseBlockedOnScriptLoadFromDocumentWriteDuration() const ;
99 100
100 ScriptValue toJSONForBinding(ScriptState*) const; 101 ScriptValue toJSONForBinding(ScriptState*) const;
101 102
102 DECLARE_VIRTUAL_TRACE(); 103 DECLARE_VIRTUAL_TRACE();
103 104
104 unsigned long long monotonicTimeToIntegerMilliseconds(double) const; 105 unsigned long long monotonicTimeToIntegerMilliseconds(double) const;
105 double integerMillisecondsToMonotonicTime(unsigned long long) const; 106 double integerMillisecondsToMonotonicTime(unsigned long long) const;
106 107
107 private: 108 private:
108 explicit PerformanceTiming(LocalFrame*); 109 explicit PerformanceTiming(LocalFrame*);
109 110
110 const DocumentTiming* documentTiming() const; 111 const DocumentTiming* documentTiming() const;
111 const DocumentParserTiming* documentParserTiming() const; 112 const DocumentParserTiming* documentParserTiming() const;
112 const PaintTiming* paintTiming() const; 113 const PaintTiming* paintTiming() const;
113 DocumentLoader* documentLoader() const; 114 DocumentLoader* documentLoader() const;
114 DocumentLoadTiming* documentLoadTiming() const; 115 DocumentLoadTiming* documentLoadTiming() const;
115 ResourceLoadTiming* resourceLoadTiming() const; 116 ResourceLoadTiming* resourceLoadTiming() const;
116 }; 117 };
117 118
118 } // namespace blink 119 } // namespace blink
119 120
120 #endif // PerformanceTiming_h 121 #endif // PerformanceTiming_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698