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

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

Issue 2615533002: Remove duplicate domHighResTimestamp conversion in NavigationTiming (Closed)
Patch Set: fixed layout test failures Created 3 years, 11 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2012 Intel Inc. All rights reserved. 3 * Copyright (C) 2012 Intel Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 14 matching lines...) Expand all
25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 */ 30 */
31 31
32 #ifndef PerformanceResourceTiming_h 32 #ifndef PerformanceResourceTiming_h
33 #define PerformanceResourceTiming_h 33 #define PerformanceResourceTiming_h
34 34
35 #include "core/dom/DOMHighResTimeStamp.h"
35 #include "core/timing/PerformanceEntry.h" 36 #include "core/timing/PerformanceEntry.h"
36 #include "platform/heap/Handle.h" 37 #include "platform/heap/Handle.h"
37 #include "wtf/Forward.h" 38 #include "wtf/Forward.h"
38 39
39 namespace blink { 40 namespace blink {
40 41
41 class ResourceLoadTiming; 42 class ResourceLoadTiming;
42 class ResourceTimingInfo; 43 class ResourceTimingInfo;
43 44
44 class CORE_EXPORT PerformanceResourceTiming : public PerformanceEntry { 45 class CORE_EXPORT PerformanceResourceTiming : public PerformanceEntry {
(...skipping 15 matching lines...) Expand all
60 static PerformanceResourceTiming* create(const ResourceTimingInfo& info, 61 static PerformanceResourceTiming* create(const ResourceTimingInfo& info,
61 double timeOrigin, 62 double timeOrigin,
62 double startTime, 63 double startTime,
63 bool allowTimingDetails) { 64 bool allowTimingDetails) {
64 return new PerformanceResourceTiming(info, timeOrigin, startTime, 0.0, 65 return new PerformanceResourceTiming(info, timeOrigin, startTime, 0.0,
65 allowTimingDetails, false); 66 allowTimingDetails, false);
66 } 67 }
67 68
68 AtomicString initiatorType() const; 69 AtomicString initiatorType() const;
69 70
70 double workerStart() const; 71 DOMHighResTimeStamp workerStart() const;
71 virtual double redirectStart() const; 72 virtual DOMHighResTimeStamp redirectStart() const;
72 virtual double redirectEnd() const; 73 virtual DOMHighResTimeStamp redirectEnd() const;
73 virtual double fetchStart() const; 74 virtual DOMHighResTimeStamp fetchStart() const;
74 double domainLookupStart() const; 75 DOMHighResTimeStamp domainLookupStart() const;
75 double domainLookupEnd() const; 76 DOMHighResTimeStamp domainLookupEnd() const;
76 double connectStart() const; 77 DOMHighResTimeStamp connectStart() const;
77 double connectEnd() const; 78 DOMHighResTimeStamp connectEnd() const;
78 double secureConnectionStart() const; 79 DOMHighResTimeStamp secureConnectionStart() const;
79 double requestStart() const; 80 DOMHighResTimeStamp requestStart() const;
80 double responseStart() const; 81 DOMHighResTimeStamp responseStart() const;
81 virtual double responseEnd() const; 82 virtual DOMHighResTimeStamp responseEnd() const;
82 unsigned long long transferSize() const; 83 unsigned long long transferSize() const;
83 unsigned long long encodedBodySize() const; 84 unsigned long long encodedBodySize() const;
84 unsigned long long decodedBodySize() const; 85 unsigned long long decodedBodySize() const;
85 86
86 protected: 87 protected:
87 void buildJSONValue(V8ObjectBuilder&) const override; 88 void buildJSONValue(V8ObjectBuilder&) const override;
88 89
89 PerformanceResourceTiming(const AtomicString& initiatorType, 90 PerformanceResourceTiming(const AtomicString& initiatorType,
90 double timeOrigin, 91 double timeOrigin,
91 ResourceLoadTiming*, 92 ResourceLoadTiming*,
(...skipping 28 matching lines...) Expand all
120 unsigned long long m_encodedBodySize; 121 unsigned long long m_encodedBodySize;
121 unsigned long long m_decodedBodySize; 122 unsigned long long m_decodedBodySize;
122 bool m_didReuseConnection; 123 bool m_didReuseConnection;
123 bool m_allowTimingDetails; 124 bool m_allowTimingDetails;
124 bool m_allowRedirectDetails; 125 bool m_allowRedirectDetails;
125 }; 126 };
126 127
127 } // namespace blink 128 } // namespace blink
128 129
129 #endif // PerformanceResourceTiming_h 130 #endif // PerformanceResourceTiming_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698