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

Side by Side Diff: Source/core/loader/PingLoader.h

Issue 1016373002: Perform CORS access checks on Beacon redirects. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebased + add mixed content test Created 5 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 | « Source/core/loader/BeaconLoader.cpp ('k') | no next file » | 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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 static void sendLinkAuditPing(LocalFrame*, const KURL& pingURL, const KURL& destinationURL); 72 static void sendLinkAuditPing(LocalFrame*, const KURL& pingURL, const KURL& destinationURL);
73 static void sendViolationReport(LocalFrame*, const KURL& reportURL, PassRefP tr<FormData> report, ViolationReportType); 73 static void sendViolationReport(LocalFrame*, const KURL& reportURL, PassRefP tr<FormData> report, ViolationReportType);
74 74
75 DECLARE_VIRTUAL_TRACE(); 75 DECLARE_VIRTUAL_TRACE();
76 76
77 protected: 77 protected:
78 PingLoader(LocalFrame*, ResourceRequest&, const FetchInitiatorInfo&, StoredC redentials); 78 PingLoader(LocalFrame*, ResourceRequest&, const FetchInitiatorInfo&, StoredC redentials);
79 79
80 static void start(LocalFrame*, ResourceRequest&, const FetchInitiatorInfo&, StoredCredentials = AllowStoredCredentials); 80 static void start(LocalFrame*, ResourceRequest&, const FetchInitiatorInfo&, StoredCredentials = AllowStoredCredentials);
81 81
82 void dispose();
83
82 private: 84 private:
83 virtual void didReceiveResponse(blink::WebURLLoader*, const blink::WebURLRes ponse&) override; 85 virtual void didReceiveResponse(blink::WebURLLoader*, const blink::WebURLRes ponse&) override;
84 virtual void didReceiveData(blink::WebURLLoader*, const char*, int, int) ove rride; 86 virtual void didReceiveData(blink::WebURLLoader*, const char*, int, int) ove rride;
85 virtual void didFinishLoading(blink::WebURLLoader*, double, int64_t) overrid e; 87 virtual void didFinishLoading(blink::WebURLLoader*, double, int64_t) overrid e;
86 virtual void didFail(blink::WebURLLoader*, const blink::WebURLError&) overri de; 88 virtual void didFail(blink::WebURLLoader*, const blink::WebURLError&) overri de;
87 89
88 void timeout(Timer<PingLoader>*); 90 void timeout(Timer<PingLoader>*);
89 91
90 void didFailLoading(Page*); 92 void didFailLoading(Page*);
91 93
92 void dispose();
93
94 OwnPtr<blink::WebURLLoader> m_loader; 94 OwnPtr<blink::WebURLLoader> m_loader;
95 Timer<PingLoader> m_timeout; 95 Timer<PingLoader> m_timeout;
96 String m_url; 96 String m_url;
97 unsigned long m_identifier; 97 unsigned long m_identifier;
98 }; 98 };
99 99
100 } 100 }
101 101
102 #endif // PingLoader_h 102 #endif // PingLoader_h
OLDNEW
« no previous file with comments | « Source/core/loader/BeaconLoader.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698