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

Side by Side Diff: third_party/WebKit/Source/core/loader/LinkLoader.cpp

Issue 2739633003: platform/loader: move LinkHeader from network/ to loader/ (Closed)
Patch Set: gen gen --check passes Created 3 years, 9 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 | « no previous file | third_party/WebKit/Source/platform/BUILD.gn » ('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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 28 matching lines...) Expand all
39 #include "core/html/CrossOriginAttribute.h" 39 #include "core/html/CrossOriginAttribute.h"
40 #include "core/html/LinkRelAttribute.h" 40 #include "core/html/LinkRelAttribute.h"
41 #include "core/html/parser/HTMLPreloadScanner.h" 41 #include "core/html/parser/HTMLPreloadScanner.h"
42 #include "core/inspector/ConsoleMessage.h" 42 #include "core/inspector/ConsoleMessage.h"
43 #include "core/loader/DocumentLoader.h" 43 #include "core/loader/DocumentLoader.h"
44 #include "core/loader/NetworkHintsInterface.h" 44 #include "core/loader/NetworkHintsInterface.h"
45 #include "core/loader/private/PrerenderHandle.h" 45 #include "core/loader/private/PrerenderHandle.h"
46 #include "core/loader/resource/LinkFetchResource.h" 46 #include "core/loader/resource/LinkFetchResource.h"
47 #include "platform/Prerender.h" 47 #include "platform/Prerender.h"
48 #include "platform/Timer.h" 48 #include "platform/Timer.h"
49 #include "platform/loader/LinkHeader.h"
49 #include "platform/loader/fetch/FetchInitiatorTypeNames.h" 50 #include "platform/loader/fetch/FetchInitiatorTypeNames.h"
50 #include "platform/loader/fetch/FetchRequest.h" 51 #include "platform/loader/fetch/FetchRequest.h"
51 #include "platform/loader/fetch/ResourceFetcher.h" 52 #include "platform/loader/fetch/ResourceFetcher.h"
52 #include "platform/network/LinkHeader.h"
53 #include "platform/network/mime/MIMETypeRegistry.h" 53 #include "platform/network/mime/MIMETypeRegistry.h"
54 #include "public/platform/WebPrerender.h" 54 #include "public/platform/WebPrerender.h"
55 55
56 namespace blink { 56 namespace blink {
57 57
58 static unsigned prerenderRelTypesFromRelAttribute( 58 static unsigned prerenderRelTypesFromRelAttribute(
59 const LinkRelAttribute& relAttribute, 59 const LinkRelAttribute& relAttribute,
60 Document& document) { 60 Document& document) {
61 unsigned result = 0; 61 unsigned result = 0;
62 if (relAttribute.isLinkPrerender()) { 62 if (relAttribute.isLinkPrerender()) {
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 487
488 DEFINE_TRACE(LinkLoader) { 488 DEFINE_TRACE(LinkLoader) {
489 visitor->trace(m_client); 489 visitor->trace(m_client);
490 visitor->trace(m_prerender); 490 visitor->trace(m_prerender);
491 visitor->trace(m_linkPreloadResourceClient); 491 visitor->trace(m_linkPreloadResourceClient);
492 ResourceOwner<Resource, ResourceClient>::trace(visitor); 492 ResourceOwner<Resource, ResourceClient>::trace(visitor);
493 PrerenderClient::trace(visitor); 493 PrerenderClient::trace(visitor);
494 } 494 }
495 495
496 } // namespace blink 496 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698