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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/HAREntry.js

Issue 1827743002: SameSite: Teach devtools about the new 'samesite' syntax. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Feedback+Rebase Created 4 years, 8 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 * 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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 */ 220 */
221 _buildCookie: function(cookie) 221 _buildCookie: function(cookie)
222 { 222 {
223 return { 223 return {
224 name: cookie.name(), 224 name: cookie.name(),
225 value: cookie.value(), 225 value: cookie.value(),
226 path: cookie.path(), 226 path: cookie.path(),
227 domain: cookie.domain(), 227 domain: cookie.domain(),
228 expires: cookie.expiresDate(WebInspector.HARLog.pseudoWallTime(this. _request, this._request.startTime)), 228 expires: cookie.expiresDate(WebInspector.HARLog.pseudoWallTime(this. _request, this._request.startTime)),
229 httpOnly: cookie.httpOnly(), 229 httpOnly: cookie.httpOnly(),
230 sameSite: cookie.sameSite(),
230 secure: cookie.secure() 231 secure: cookie.secure()
231 }; 232 };
232 }, 233 },
233 234
234 /** 235 /**
235 * @return {number} 236 * @return {number}
236 */ 237 */
237 get requestBodySize() 238 get requestBodySize()
238 { 239 {
239 return !this._request.requestFormData ? 0 : this._request.requestFormDat a.length; 240 return !this._request.requestFormData ? 0 : this._request.requestFormDat a.length;
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 * @return {number} 368 * @return {number}
368 */ 369 */
369 _pageEventTime: function(page, time) 370 _pageEventTime: function(page, time)
370 { 371 {
371 var startTime = page.startTime; 372 var startTime = page.startTime;
372 if (time === -1 || startTime === -1) 373 if (time === -1 || startTime === -1)
373 return -1; 374 return -1;
374 return WebInspector.HAREntry._toMilliseconds(time - startTime); 375 return WebInspector.HAREntry._toMilliseconds(time - startTime);
375 } 376 }
376 } 377 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698