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

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

Issue 2482653002: Move MIME related platform files under network/mime (Closed)
Patch Set: fix Created 4 years 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) 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 29 matching lines...) Expand all
40 #include "core/frame/Settings.h" 40 #include "core/frame/Settings.h"
41 #include "core/frame/UseCounter.h" 41 #include "core/frame/UseCounter.h"
42 #include "core/html/CrossOriginAttribute.h" 42 #include "core/html/CrossOriginAttribute.h"
43 #include "core/html/LinkRelAttribute.h" 43 #include "core/html/LinkRelAttribute.h"
44 #include "core/html/parser/HTMLPreloadScanner.h" 44 #include "core/html/parser/HTMLPreloadScanner.h"
45 #include "core/inspector/ConsoleMessage.h" 45 #include "core/inspector/ConsoleMessage.h"
46 #include "core/loader/DocumentLoader.h" 46 #include "core/loader/DocumentLoader.h"
47 #include "core/loader/NetworkHintsInterface.h" 47 #include "core/loader/NetworkHintsInterface.h"
48 #include "core/loader/PrerenderHandle.h" 48 #include "core/loader/PrerenderHandle.h"
49 #include "core/loader/resource/LinkFetchResource.h" 49 #include "core/loader/resource/LinkFetchResource.h"
50 #include "platform/MIMETypeRegistry.h"
51 #include "platform/Prerender.h" 50 #include "platform/Prerender.h"
52 #include "platform/RuntimeEnabledFeatures.h" 51 #include "platform/RuntimeEnabledFeatures.h"
53 #include "platform/network/LinkHeader.h" 52 #include "platform/network/LinkHeader.h"
54 #include "platform/network/NetworkHints.h" 53 #include "platform/network/NetworkHints.h"
54 #include "platform/network/mime/MIMETypeRegistry.h"
55 #include "public/platform/WebPrerender.h" 55 #include "public/platform/WebPrerender.h"
56 56
57 namespace blink { 57 namespace blink {
58 58
59 static unsigned prerenderRelTypesFromRelAttribute( 59 static unsigned prerenderRelTypesFromRelAttribute(
60 const LinkRelAttribute& relAttribute, 60 const LinkRelAttribute& relAttribute,
61 Document& document) { 61 Document& document) {
62 unsigned result = 0; 62 unsigned result = 0;
63 if (relAttribute.isLinkPrerender()) { 63 if (relAttribute.isLinkPrerender()) {
64 result |= PrerenderRelTypePrerender; 64 result |= PrerenderRelTypePrerender;
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 480
481 DEFINE_TRACE(LinkLoader) { 481 DEFINE_TRACE(LinkLoader) {
482 visitor->trace(m_client); 482 visitor->trace(m_client);
483 visitor->trace(m_prerender); 483 visitor->trace(m_prerender);
484 visitor->trace(m_linkPreloadResourceClient); 484 visitor->trace(m_linkPreloadResourceClient);
485 ResourceOwner<Resource, ResourceClient>::trace(visitor); 485 ResourceOwner<Resource, ResourceClient>::trace(visitor);
486 PrerenderClient::trace(visitor); 486 PrerenderClient::trace(visitor);
487 } 487 }
488 488
489 } // namespace blink 489 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698