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

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 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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 { 213 {
214 return cookies.map(this._buildCookie.bind(this)); 214 return cookies.map(this._buildCookie.bind(this));
215 }, 215 },
216 216
217 /** 217 /**
218 * @param {!WebInspector.Cookie} cookie 218 * @param {!WebInspector.Cookie} cookie
219 * @return {!Object} 219 * @return {!Object}
220 */ 220 */
221 _buildCookie: function(cookie) 221 _buildCookie: function(cookie)
222 { 222 {
223 return { 223 var c = {
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 secure: cookie.secure() 230 secure: cookie.secure()
231 }; 231 };
232 if (cookie.sameSite())
233 c.sameSite = cookie.sameSite();
234 return c;
232 }, 235 },
233 236
234 /** 237 /**
235 * @return {number} 238 * @return {number}
236 */ 239 */
237 get requestBodySize() 240 get requestBodySize()
238 { 241 {
239 return !this._request.requestFormData ? 0 : this._request.requestFormDat a.length; 242 return !this._request.requestFormData ? 0 : this._request.requestFormDat a.length;
240 }, 243 },
241 244
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 * @return {number} 370 * @return {number}
368 */ 371 */
369 _pageEventTime: function(page, time) 372 _pageEventTime: function(page, time)
370 { 373 {
371 var startTime = page.startTime; 374 var startTime = page.startTime;
372 if (time === -1 || startTime === -1) 375 if (time === -1 || startTime === -1)
373 return -1; 376 return -1;
374 return WebInspector.HAREntry._toMilliseconds(time - startTime); 377 return WebInspector.HAREntry._toMilliseconds(time - startTime);
375 } 378 }
376 } 379 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/sdk/CookieParser.js ('k') | third_party/WebKit/Source/devtools/protocol.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698