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

Side by Side Diff: Source/WebKit/chromium/src/WebURLLoadTiming.cpp

Issue 15265004: Fix ResourceLoadTiming resolution lose issue. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add inline help function to satisfy inspector Created 7 years, 7 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
« no previous file with comments | « no previous file | Source/core/inspector/InspectorResourceAgent.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 double WebURLLoadTiming::requestTime() const 56 double WebURLLoadTiming::requestTime() const
57 { 57 {
58 return m_private->requestTime; 58 return m_private->requestTime;
59 } 59 }
60 60
61 void WebURLLoadTiming::setRequestTime(double time) 61 void WebURLLoadTiming::setRequestTime(double time)
62 { 62 {
63 m_private->requestTime = time; 63 m_private->requestTime = time;
64 } 64 }
65 65
66 #ifdef ENABLE_DOUBLE_RESOURCE_LOAD_TIMING
67 double WebURLLoadTiming::proxyStart() const
68 {
69 return m_private->proxyStart;
70 }
71
72 void WebURLLoadTiming::setProxyStart(double start)
73 {
74 m_private->proxyStart = start;
75 }
76
77 double WebURLLoadTiming::proxyEnd() const
78 {
79 return m_private->proxyEnd;
80 }
81
82 void WebURLLoadTiming::setProxyEnd(double end)
83 {
84 m_private->proxyEnd = end;
85 }
86
87 double WebURLLoadTiming::dnsStart() const
88 {
89 return m_private->dnsStart;
90 }
91
92 void WebURLLoadTiming::setDNSStart(double start)
93 {
94 m_private->dnsStart = start;
95 }
96
97 double WebURLLoadTiming::dnsEnd() const
98 {
99 return m_private->dnsEnd;
100 }
101
102 void WebURLLoadTiming::setDNSEnd(double end)
103 {
104 m_private->dnsEnd = end;
105 }
106
107 double WebURLLoadTiming::connectStart() const
108 {
109 return m_private->connectStart;
110 }
111
112 void WebURLLoadTiming::setConnectStart(double start)
113 {
114 m_private->connectStart = start;
115 }
116
117 double WebURLLoadTiming::connectEnd() const
118 {
119 return m_private->connectEnd;
120 }
121
122 void WebURLLoadTiming::setConnectEnd(double end)
123 {
124 m_private->connectEnd = end;
125 }
126
127 double WebURLLoadTiming::sendStart() const
128 {
129 return m_private->sendStart;
130 }
131
132 void WebURLLoadTiming::setSendStart(double start)
133 {
134 m_private->sendStart = start;
135 }
136
137 double WebURLLoadTiming::sendEnd() const
138 {
139 return m_private->sendEnd;
140 }
141
142 void WebURLLoadTiming::setSendEnd(double end)
143 {
144 m_private->sendEnd = end;
145 }
146
147 double WebURLLoadTiming::receiveHeadersEnd() const
148 {
149 return m_private->receiveHeadersEnd;
150 }
151
152 void WebURLLoadTiming::setReceiveHeadersEnd(double end)
153 {
154 m_private->receiveHeadersEnd = end;
155 }
156
157 double WebURLLoadTiming::sslStart() const
158 {
159 return m_private->sslStart;
160 }
161
162 void WebURLLoadTiming::setSSLStart(double start)
163 {
164 m_private->sslStart = start;
165 }
166
167 double WebURLLoadTiming::sslEnd() const
168 {
169 return m_private->sslEnd;
170 }
171
172 void WebURLLoadTiming::setSSLEnd(double end)
173 {
174 m_private->sslEnd = end;
175 }
176 #else
66 int WebURLLoadTiming::proxyStart() const 177 int WebURLLoadTiming::proxyStart() const
67 { 178 {
68 return m_private->proxyStart; 179 return m_private->proxyStart;
69 } 180 }
70 181
71 void WebURLLoadTiming::setProxyStart(int start) 182 void WebURLLoadTiming::setProxyStart(int start)
72 { 183 {
73 m_private->proxyStart = start; 184 m_private->proxyStart = start;
74 } 185 }
75 186
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 276
166 int WebURLLoadTiming::sslEnd() const 277 int WebURLLoadTiming::sslEnd() const
167 { 278 {
168 return m_private->sslEnd; 279 return m_private->sslEnd;
169 } 280 }
170 281
171 void WebURLLoadTiming::setSSLEnd(int end) 282 void WebURLLoadTiming::setSSLEnd(int end)
172 { 283 {
173 m_private->sslEnd = end; 284 m_private->sslEnd = end;
174 } 285 }
286 #endif
175 287
176 WebURLLoadTiming::WebURLLoadTiming(const PassRefPtr<ResourceLoadTiming>& value) 288 WebURLLoadTiming::WebURLLoadTiming(const PassRefPtr<ResourceLoadTiming>& value)
177 : m_private(value) 289 : m_private(value)
178 { 290 {
179 } 291 }
180 292
181 WebURLLoadTiming& WebURLLoadTiming::operator=(const PassRefPtr<ResourceLoadTimin g>& value) 293 WebURLLoadTiming& WebURLLoadTiming::operator=(const PassRefPtr<ResourceLoadTimin g>& value)
182 { 294 {
183 m_private = value; 295 m_private = value;
184 return *this; 296 return *this;
185 } 297 }
186 298
187 WebURLLoadTiming::operator PassRefPtr<ResourceLoadTiming>() const 299 WebURLLoadTiming::operator PassRefPtr<ResourceLoadTiming>() const
188 { 300 {
189 return m_private.get(); 301 return m_private.get();
190 } 302 }
191 303
192 } // namespace WebKit 304 } // namespace WebKit
OLDNEW
« no previous file with comments | « no previous file | Source/core/inspector/InspectorResourceAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698