| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 WTF_MAKE_NONCOPYABLE(PingLoader); | 62 WTF_MAKE_NONCOPYABLE(PingLoader); |
| 63 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(PingLoader); | 63 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(PingLoader); |
| 64 public: | 64 public: |
| 65 virtual ~PingLoader(); | 65 virtual ~PingLoader(); |
| 66 | 66 |
| 67 enum ViolationReportType { | 67 enum ViolationReportType { |
| 68 ContentSecurityPolicyViolationReport, | 68 ContentSecurityPolicyViolationReport, |
| 69 XSSAuditorViolationReport | 69 XSSAuditorViolationReport |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 static void loadImage(LocalFrame*, const KURL& url); | 72 static void loadImage(LocalFrame*, const KURL&); |
| 73 static void sendLinkAuditPing(LocalFrame*, const KURL& pingURL, const KURL&
destinationURL); | 73 static void sendLinkAuditPing(LocalFrame*, const KURL& pingURL, const KURL&
destinationURL); |
| 74 static void sendViolationReport(LocalFrame*, const KURL& reportURL, PassRefP
tr<FormData> report, ViolationReportType); | 74 static void sendViolationReport(LocalFrame*, const KURL& reportURL, PassRefP
tr<FormData> report, ViolationReportType); |
| 75 | 75 |
| 76 DECLARE_VIRTUAL_TRACE(); | 76 DECLARE_VIRTUAL_TRACE(); |
| 77 | 77 |
| 78 protected: | 78 protected: |
| 79 PingLoader(LocalFrame*, ResourceRequest&, const FetchInitiatorInfo&, StoredC
redentials); | 79 PingLoader(LocalFrame*, ResourceRequest&, const FetchInitiatorInfo&, StoredC
redentials); |
| 80 | 80 |
| 81 static void start(LocalFrame*, ResourceRequest&, const FetchInitiatorInfo&,
StoredCredentials = AllowStoredCredentials); | 81 static void start(LocalFrame*, ResourceRequest&, const FetchInitiatorInfo&,
StoredCredentials = AllowStoredCredentials); |
| 82 | 82 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 94 | 94 |
| 95 OwnPtr<WebURLLoader> m_loader; | 95 OwnPtr<WebURLLoader> m_loader; |
| 96 Timer<PingLoader> m_timeout; | 96 Timer<PingLoader> m_timeout; |
| 97 String m_url; | 97 String m_url; |
| 98 unsigned long m_identifier; | 98 unsigned long m_identifier; |
| 99 }; | 99 }; |
| 100 | 100 |
| 101 } // namespace blink | 101 } // namespace blink |
| 102 | 102 |
| 103 #endif // PingLoader_h | 103 #endif // PingLoader_h |
| OLD | NEW |