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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp

Issue 1352523002: Use high precision timestamp for Event.timestamp (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 years, 2 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Simon Hausmann <hausmann@kde.org> 4 * (C) 2000 Simon Hausmann <hausmann@kde.org>
5 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv ed. 5 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv ed.
6 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) 6 * (C) 2006 Graham Dennis (graham.dennis@gmail.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 StringBuilder url; 342 StringBuilder url;
343 url.append(stripLeadingAndTrailingHTMLSpaces(fastGetAttribute(hrefAttr))); 343 url.append(stripLeadingAndTrailingHTMLSpaces(fastGetAttribute(hrefAttr)));
344 appendServerMapMousePosition(url, event); 344 appendServerMapMousePosition(url, event);
345 KURL completedURL = document().completeURL(url.toString()); 345 KURL completedURL = document().completeURL(url.toString());
346 346
347 // Schedule the ping before the frame load. Prerender in Chrome may kill the renderer as soon as the navigation is 347 // Schedule the ping before the frame load. Prerender in Chrome may kill the renderer as soon as the navigation is
348 // sent out. 348 // sent out.
349 sendPings(completedURL); 349 sendPings(completedURL);
350 350
351 ResourceRequest request(completedURL); 351 ResourceRequest request(completedURL);
352 request.setUIStartTime(event->uiCreateTime()); 352 request.setUIStartTime(event->platformTimeStamp());
353 request.setInputPerfMetricReportPolicy(InputToLoadPerfMetricReportPolicy::Re portLink); 353 request.setInputPerfMetricReportPolicy(InputToLoadPerfMetricReportPolicy::Re portLink);
354 354
355 ReferrerPolicy policy; 355 ReferrerPolicy policy;
356 if (RuntimeEnabledFeatures::referrerPolicyAttributeEnabled() && hasAttribute (referrerpolicyAttr) && SecurityPolicy::referrerPolicyFromString(fastGetAttribut e(referrerpolicyAttr), &policy) && !hasRel(RelationNoReferrer)) { 356 if (RuntimeEnabledFeatures::referrerPolicyAttributeEnabled() && hasAttribute (referrerpolicyAttr) && SecurityPolicy::referrerPolicyFromString(fastGetAttribut e(referrerpolicyAttr), &policy) && !hasRel(RelationNoReferrer)) {
357 request.setHTTPReferrer(SecurityPolicy::generateReferrer(policy, complet edURL, document().outgoingReferrer())); 357 request.setHTTPReferrer(SecurityPolicy::generateReferrer(policy, complet edURL, document().outgoingReferrer()));
358 } 358 }
359 359
360 if (hasAttribute(downloadAttr)) { 360 if (hasAttribute(downloadAttr)) {
361 request.setRequestContext(WebURLRequest::RequestContextDownload); 361 request.setRequestContext(WebURLRequest::RequestContextDownload);
362 bool isSameOrigin = completedURL.protocolIsData() || document().security Origin()->canRequest(completedURL); 362 bool isSameOrigin = completedURL.protocolIsData() || document().security Origin()->canRequest(completedURL);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 Vector<String> argv; 401 Vector<String> argv;
402 argv.append("a"); 402 argv.append("a");
403 argv.append(fastGetAttribute(hrefAttr)); 403 argv.append(fastGetAttribute(hrefAttr));
404 activityLogger->logEvent("blinkAddElement", argv.size(), argv.data() ); 404 activityLogger->logEvent("blinkAddElement", argv.size(), argv.data() );
405 } 405 }
406 } 406 }
407 return HTMLElement::insertedInto(insertionPoint); 407 return HTMLElement::insertedInto(insertionPoint);
408 } 408 }
409 409
410 } // namespace blink 410 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/TouchEvent.cpp ('k') | third_party/WebKit/Source/core/html/forms/TypeAhead.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698