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

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

Issue 1115553002: Removing blink::prefix (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 7 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
« no previous file with comments | « Source/core/frame/UseCounter.cpp ('k') | Source/core/html/HTMLCanvasElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 KURL completedURL = document().completeURL(url.toString()); 342 KURL completedURL = document().completeURL(url.toString());
343 343
344 // Schedule the ping before the frame load. Prerender in Chrome may kill the renderer as soon as the navigation is 344 // Schedule the ping before the frame load. Prerender in Chrome may kill the renderer as soon as the navigation is
345 // sent out. 345 // sent out.
346 sendPings(completedURL); 346 sendPings(completedURL);
347 347
348 ResourceRequest request(completedURL); 348 ResourceRequest request(completedURL);
349 request.setUIStartTime(event->uiCreateTime()); 349 request.setUIStartTime(event->uiCreateTime());
350 request.setInputPerfMetricReportPolicy(InputToLoadPerfMetricReportPolicy::Re portLink); 350 request.setInputPerfMetricReportPolicy(InputToLoadPerfMetricReportPolicy::Re portLink);
351 if (hasAttribute(downloadAttr)) { 351 if (hasAttribute(downloadAttr)) {
352 request.setRequestContext(blink::WebURLRequest::RequestContextDownload); 352 request.setRequestContext(WebURLRequest::RequestContextDownload);
353 bool isSameOrigin = completedURL.protocolIsData() || document().security Origin()->canRequest(completedURL); 353 bool isSameOrigin = completedURL.protocolIsData() || document().security Origin()->canRequest(completedURL);
354 const AtomicString& suggestedName = (isSameOrigin ? fastGetAttribute(dow nloadAttr) : nullAtom); 354 const AtomicString& suggestedName = (isSameOrigin ? fastGetAttribute(dow nloadAttr) : nullAtom);
355 355
356 frame->loader().client()->loadURLExternally(request, NavigationPolicyDow nload, suggestedName); 356 frame->loader().client()->loadURLExternally(request, NavigationPolicyDow nload, suggestedName);
357 } else { 357 } else {
358 request.setRequestContext(blink::WebURLRequest::RequestContextHyperlink) ; 358 request.setRequestContext(WebURLRequest::RequestContextHyperlink);
359 FrameLoadRequest frameRequest(&document(), request, getAttribute(targetA ttr)); 359 FrameLoadRequest frameRequest(&document(), request, getAttribute(targetA ttr));
360 frameRequest.setTriggeringEvent(event); 360 frameRequest.setTriggeringEvent(event);
361 if (hasRel(RelationNoReferrer)) 361 if (hasRel(RelationNoReferrer))
362 frameRequest.setShouldSendReferrer(NeverSendReferrer); 362 frameRequest.setShouldSendReferrer(NeverSendReferrer);
363 frame->loader().load(frameRequest); 363 frame->loader().load(frameRequest);
364 } 364 }
365 } 365 }
366 366
367 bool isEnterKeyKeydownEvent(Event* event) 367 bool isEnterKeyKeydownEvent(Event* event)
368 { 368 {
(...skipping 22 matching lines...) Expand all
391 if (activityLogger) { 391 if (activityLogger) {
392 Vector<String> argv; 392 Vector<String> argv;
393 argv.append("a"); 393 argv.append("a");
394 argv.append(fastGetAttribute(hrefAttr)); 394 argv.append(fastGetAttribute(hrefAttr));
395 activityLogger->logEvent("blinkAddElement", argv.size(), argv.data() ); 395 activityLogger->logEvent("blinkAddElement", argv.size(), argv.data() );
396 } 396 }
397 } 397 }
398 return HTMLElement::insertedInto(insertionPoint); 398 return HTMLElement::insertedInto(insertionPoint);
399 } 399 }
400 400
401 } 401 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/frame/UseCounter.cpp ('k') | Source/core/html/HTMLCanvasElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698