| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 */ | 214 */ |
| 215 _buildCookie: function(cookie) | 215 _buildCookie: function(cookie) |
| 216 { | 216 { |
| 217 return { | 217 return { |
| 218 name: cookie.name(), | 218 name: cookie.name(), |
| 219 value: cookie.value(), | 219 value: cookie.value(), |
| 220 path: cookie.path(), | 220 path: cookie.path(), |
| 221 domain: cookie.domain(), | 221 domain: cookie.domain(), |
| 222 expires: cookie.expiresDate(WebInspector.HARLog.pseudoWallTime(this.
_request, this._request.startTime)), | 222 expires: cookie.expiresDate(WebInspector.HARLog.pseudoWallTime(this.
_request, this._request.startTime)), |
| 223 httpOnly: cookie.httpOnly(), | 223 httpOnly: cookie.httpOnly(), |
| 224 sameSite: cookie.sameSite(), |
| 224 secure: cookie.secure() | 225 secure: cookie.secure() |
| 225 }; | 226 }; |
| 226 }, | 227 }, |
| 227 | 228 |
| 228 /** | 229 /** |
| 229 * @return {number} | 230 * @return {number} |
| 230 */ | 231 */ |
| 231 get requestBodySize() | 232 get requestBodySize() |
| 232 { | 233 { |
| 233 return !this._request.requestFormData ? 0 : this._request.requestFormDat
a.length; | 234 return !this._request.requestFormData ? 0 : this._request.requestFormDat
a.length; |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 * @return {number} | 362 * @return {number} |
| 362 */ | 363 */ |
| 363 _pageEventTime: function(page, time) | 364 _pageEventTime: function(page, time) |
| 364 { | 365 { |
| 365 var startTime = page.startTime; | 366 var startTime = page.startTime; |
| 366 if (time === -1 || startTime === -1) | 367 if (time === -1 || startTime === -1) |
| 367 return -1; | 368 return -1; |
| 368 return WebInspector.HAREntry._toMilliseconds(time - startTime); | 369 return WebInspector.HAREntry._toMilliseconds(time - startTime); |
| 369 } | 370 } |
| 370 } | 371 } |
| OLD | NEW |