OLD | NEW |
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 Loading... |
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 |
OLD | NEW |