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

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

Issue 1487343002: Set credentials mode "same-origin" when crossOrigin=anonymous is set. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 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 18 matching lines...) Expand all
29 * 29 *
30 */ 30 */
31 31
32 #ifndef LinkLoader_h 32 #ifndef LinkLoader_h
33 #define LinkLoader_h 33 #define LinkLoader_h
34 34
35 #include "core/CoreExport.h" 35 #include "core/CoreExport.h"
36 #include "core/fetch/ResourceClient.h" 36 #include "core/fetch/ResourceClient.h"
37 #include "core/fetch/ResourceOwner.h" 37 #include "core/fetch/ResourceOwner.h"
38 #include "core/loader/LinkLoaderClient.h" 38 #include "core/loader/LinkLoaderClient.h"
39 #include "platform/CrossOriginAttributeValue.h"
39 #include "platform/PrerenderClient.h" 40 #include "platform/PrerenderClient.h"
40 #include "platform/Timer.h" 41 #include "platform/Timer.h"
41 #include "platform/heap/Handle.h" 42 #include "platform/heap/Handle.h"
42 #include "wtf/OwnPtr.h" 43 #include "wtf/OwnPtr.h"
43 44
44 namespace blink { 45 namespace blink {
45 46
46 class Document; 47 class Document;
47 class LinkRelAttribute; 48 class LinkRelAttribute;
48 class NetworkHintsInterface; 49 class NetworkHintsInterface;
(...skipping 10 matching lines...) Expand all
59 void notifyFinished(Resource*) override; 60 void notifyFinished(Resource*) override;
60 String debugName() const override { return "LinkLoader"; } 61 String debugName() const override { return "LinkLoader"; }
61 62
62 // from PrerenderClient 63 // from PrerenderClient
63 void didStartPrerender() override; 64 void didStartPrerender() override;
64 void didStopPrerender() override; 65 void didStopPrerender() override;
65 void didSendLoadForPrerender() override; 66 void didSendLoadForPrerender() override;
66 void didSendDOMContentLoadedForPrerender() override; 67 void didSendDOMContentLoadedForPrerender() override;
67 68
68 void released(); 69 void released();
69 bool loadLink(const LinkRelAttribute&, const AtomicString& crossOriginMode, const String& type, const String& as, const KURL&, Document&, const NetworkHints Interface&); 70 bool loadLink(const LinkRelAttribute&, CrossOriginAttributeValue, const Stri ng& type, const String& as, const KURL&, Document&, const NetworkHintsInterface& );
70 static bool loadLinkFromHeader(const String& headerValue, Document*, const N etworkHintsInterface&); 71 static bool loadLinkFromHeader(const String& headerValue, Document*, const N etworkHintsInterface&);
71 72
72 DECLARE_TRACE(); 73 DECLARE_TRACE();
73 74
74 private: 75 private:
75 void linkLoadTimerFired(Timer<LinkLoader>*); 76 void linkLoadTimerFired(Timer<LinkLoader>*);
76 void linkLoadingErrorTimerFired(Timer<LinkLoader>*); 77 void linkLoadingErrorTimerFired(Timer<LinkLoader>*);
77 78
78 LinkLoaderClient* m_client; 79 LinkLoaderClient* m_client;
79 80
80 Timer<LinkLoader> m_linkLoadTimer; 81 Timer<LinkLoader> m_linkLoadTimer;
81 Timer<LinkLoader> m_linkLoadingErrorTimer; 82 Timer<LinkLoader> m_linkLoadingErrorTimer;
82 83
83 OwnPtrWillBeMember<PrerenderHandle> m_prerender; 84 OwnPtrWillBeMember<PrerenderHandle> m_prerender;
84 }; 85 };
85 86
86 } 87 }
87 88
88 #endif 89 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/ImageLoader.cpp ('k') | third_party/WebKit/Source/core/loader/LinkLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698