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

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

Issue 2429063002: Implement nextHopProtocol in PerformanceResourceTiming and PerformanceNavigationTiming.
Patch Set: connection_info initial value Created 4 years, 1 month 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 static PerformanceResourceTiming* create(const ResourceTimingInfo& info, 59 static PerformanceResourceTiming* create(const ResourceTimingInfo& info,
60 double timeOrigin, 60 double timeOrigin,
61 double startTime, 61 double startTime,
62 bool allowTimingDetails) { 62 bool allowTimingDetails) {
63 return new PerformanceResourceTiming(info, timeOrigin, startTime, 0.0, 63 return new PerformanceResourceTiming(info, timeOrigin, startTime, 0.0,
64 allowTimingDetails, false); 64 allowTimingDetails, false);
65 } 65 }
66 66
67 AtomicString initiatorType() const; 67 AtomicString initiatorType() const;
68 68 AtomicString nextHopProtocol() const;
69 double workerStart() const; 69 double workerStart() const;
70 double redirectStart() const; 70 double redirectStart() const;
71 double redirectEnd() const; 71 double redirectEnd() const;
72 double fetchStart() const; 72 double fetchStart() const;
73 double domainLookupStart() const; 73 double domainLookupStart() const;
74 double domainLookupEnd() const; 74 double domainLookupEnd() const;
75 double connectStart() const; 75 double connectStart() const;
76 double connectEnd() const; 76 double connectEnd() const;
77 double secureConnectionStart() const; 77 double secureConnectionStart() const;
78 double requestStart() const; 78 double requestStart() const;
79 double responseStart() const; 79 double responseStart() const;
80 double responseEnd() const; 80 double responseEnd() const;
81 unsigned long long transferSize() const; 81 unsigned long long transferSize() const;
82 unsigned long long encodedBodySize() const; 82 unsigned long long encodedBodySize() const;
83 unsigned long long decodedBodySize() const; 83 unsigned long long decodedBodySize() const;
84 84
85 protected: 85 protected:
86 void buildJSONValue(V8ObjectBuilder&) const override; 86 void buildJSONValue(V8ObjectBuilder&) const override;
87 87
88 private: 88 private:
89 PerformanceResourceTiming(const ResourceTimingInfo&, 89 PerformanceResourceTiming(const ResourceTimingInfo&,
90 double timeOrigin, 90 double timeOrigin,
91 double startTime, 91 double startTime,
92 double lastRedirectEndTime, 92 double lastRedirectEndTime,
93 bool m_allowTimingDetails, 93 bool m_allowTimingDetails,
94 bool m_allowRedirectDetails); 94 bool m_allowRedirectDetails);
95 ~PerformanceResourceTiming() override; 95 ~PerformanceResourceTiming() override;
96 96
97 static AtomicString produceNextHopProtocol(
98 const AtomicString& alpnNegotiatedProtocol,
99 const AtomicString& connectionInfo);
100
97 double workerReady() const; 101 double workerReady() const;
98 102
99 AtomicString m_initiatorType; 103 AtomicString m_initiatorType;
104 AtomicString m_nextHopProtocol;
105 AtomicString m_connectionInfo;
100 double m_timeOrigin; 106 double m_timeOrigin;
101 RefPtr<ResourceLoadTiming> m_timing; 107 RefPtr<ResourceLoadTiming> m_timing;
102 double m_lastRedirectEndTime; 108 double m_lastRedirectEndTime;
103 double m_finishTime; 109 double m_finishTime;
104 unsigned long long m_transferSize; 110 unsigned long long m_transferSize;
105 unsigned long long m_encodedBodySize; 111 unsigned long long m_encodedBodySize;
106 unsigned long long m_decodedBodySize; 112 unsigned long long m_decodedBodySize;
107 bool m_didReuseConnection; 113 bool m_didReuseConnection;
108 bool m_allowTimingDetails; 114 bool m_allowTimingDetails;
109 bool m_allowRedirectDetails; 115 bool m_allowRedirectDetails;
110 }; 116 };
111 117
112 } // namespace blink 118 } // namespace blink
113 119
114 #endif // PerformanceResourceTiming_h 120 #endif // PerformanceResourceTiming_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698