| OLD | NEW |
| 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 Loading... |
| 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 | 66 double WebURLLoadTiming::proxyStart() const |
| 68 { | 67 { |
| 69 return m_private->proxyStart; | 68 return m_private->proxyStart; |
| 70 } | 69 } |
| 71 | 70 |
| 72 void WebURLLoadTiming::setProxyStart(double start) | 71 void WebURLLoadTiming::setProxyStart(double start) |
| 73 { | 72 { |
| 74 m_private->proxyStart = start; | 73 m_private->proxyStart = start; |
| 75 } | 74 } |
| 76 | 75 |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 | 165 |
| 167 double WebURLLoadTiming::sslEnd() const | 166 double WebURLLoadTiming::sslEnd() const |
| 168 { | 167 { |
| 169 return m_private->sslEnd; | 168 return m_private->sslEnd; |
| 170 } | 169 } |
| 171 | 170 |
| 172 void WebURLLoadTiming::setSSLEnd(double end) | 171 void WebURLLoadTiming::setSSLEnd(double end) |
| 173 { | 172 { |
| 174 m_private->sslEnd = end; | 173 m_private->sslEnd = end; |
| 175 } | 174 } |
| 176 #else | |
| 177 int WebURLLoadTiming::proxyStart() const | |
| 178 { | |
| 179 return m_private->proxyStart; | |
| 180 } | |
| 181 | |
| 182 void WebURLLoadTiming::setProxyStart(int start) | |
| 183 { | |
| 184 m_private->proxyStart = start; | |
| 185 } | |
| 186 | |
| 187 int WebURLLoadTiming::proxyEnd() const | |
| 188 { | |
| 189 return m_private->proxyEnd; | |
| 190 } | |
| 191 | |
| 192 void WebURLLoadTiming::setProxyEnd(int end) | |
| 193 { | |
| 194 m_private->proxyEnd = end; | |
| 195 } | |
| 196 | |
| 197 int WebURLLoadTiming::dnsStart() const | |
| 198 { | |
| 199 return m_private->dnsStart; | |
| 200 } | |
| 201 | |
| 202 void WebURLLoadTiming::setDNSStart(int start) | |
| 203 { | |
| 204 m_private->dnsStart = start; | |
| 205 } | |
| 206 | |
| 207 int WebURLLoadTiming::dnsEnd() const | |
| 208 { | |
| 209 return m_private->dnsEnd; | |
| 210 } | |
| 211 | |
| 212 void WebURLLoadTiming::setDNSEnd(int end) | |
| 213 { | |
| 214 m_private->dnsEnd = end; | |
| 215 } | |
| 216 | |
| 217 int WebURLLoadTiming::connectStart() const | |
| 218 { | |
| 219 return m_private->connectStart; | |
| 220 } | |
| 221 | |
| 222 void WebURLLoadTiming::setConnectStart(int start) | |
| 223 { | |
| 224 m_private->connectStart = start; | |
| 225 } | |
| 226 | |
| 227 int WebURLLoadTiming::connectEnd() const | |
| 228 { | |
| 229 return m_private->connectEnd; | |
| 230 } | |
| 231 | |
| 232 void WebURLLoadTiming::setConnectEnd(int end) | |
| 233 { | |
| 234 m_private->connectEnd = end; | |
| 235 } | |
| 236 | |
| 237 int WebURLLoadTiming::sendStart() const | |
| 238 { | |
| 239 return m_private->sendStart; | |
| 240 } | |
| 241 | |
| 242 void WebURLLoadTiming::setSendStart(int start) | |
| 243 { | |
| 244 m_private->sendStart = start; | |
| 245 } | |
| 246 | |
| 247 int WebURLLoadTiming::sendEnd() const | |
| 248 { | |
| 249 return m_private->sendEnd; | |
| 250 } | |
| 251 | |
| 252 void WebURLLoadTiming::setSendEnd(int end) | |
| 253 { | |
| 254 m_private->sendEnd = end; | |
| 255 } | |
| 256 | |
| 257 int WebURLLoadTiming::receiveHeadersEnd() const | |
| 258 { | |
| 259 return m_private->receiveHeadersEnd; | |
| 260 } | |
| 261 | |
| 262 void WebURLLoadTiming::setReceiveHeadersEnd(int end) | |
| 263 { | |
| 264 m_private->receiveHeadersEnd = end; | |
| 265 } | |
| 266 | |
| 267 int WebURLLoadTiming::sslStart() const | |
| 268 { | |
| 269 return m_private->sslStart; | |
| 270 } | |
| 271 | |
| 272 void WebURLLoadTiming::setSSLStart(int start) | |
| 273 { | |
| 274 m_private->sslStart = start; | |
| 275 } | |
| 276 | |
| 277 int WebURLLoadTiming::sslEnd() const | |
| 278 { | |
| 279 return m_private->sslEnd; | |
| 280 } | |
| 281 | |
| 282 void WebURLLoadTiming::setSSLEnd(int end) | |
| 283 { | |
| 284 m_private->sslEnd = end; | |
| 285 } | |
| 286 #endif | |
| 287 | 175 |
| 288 WebURLLoadTiming::WebURLLoadTiming(const PassRefPtr<ResourceLoadTiming>& value) | 176 WebURLLoadTiming::WebURLLoadTiming(const PassRefPtr<ResourceLoadTiming>& value) |
| 289 : m_private(value) | 177 : m_private(value) |
| 290 { | 178 { |
| 291 } | 179 } |
| 292 | 180 |
| 293 WebURLLoadTiming& WebURLLoadTiming::operator=(const PassRefPtr<ResourceLoadTimin
g>& value) | 181 WebURLLoadTiming& WebURLLoadTiming::operator=(const PassRefPtr<ResourceLoadTimin
g>& value) |
| 294 { | 182 { |
| 295 m_private = value; | 183 m_private = value; |
| 296 return *this; | 184 return *this; |
| 297 } | 185 } |
| 298 | 186 |
| 299 WebURLLoadTiming::operator PassRefPtr<ResourceLoadTiming>() const | 187 WebURLLoadTiming::operator PassRefPtr<ResourceLoadTiming>() const |
| 300 { | 188 { |
| 301 return m_private.get(); | 189 return m_private.get(); |
| 302 } | 190 } |
| 303 | 191 |
| 304 } // namespace WebKit | 192 } // namespace WebKit |
| OLD | NEW |