CSP: Update violation report 'Content-Type' header
[WebKit-https.git] / Source / WebCore / loader / PingLoader.h
index 59e1cf7..86079bc 100644 (file)
@@ -41,11 +41,16 @@ class Frame;
 class URL;
 class ResourceRequest;
 
+enum class ViolationReportType {
+    ContentSecurityPolicy,
+    XSSAuditor,
+};
+
 class PingLoader {
 public:
     static void loadImage(Frame&, const URL&);
     static void sendPing(Frame&, const URL& pingURL, const URL& destinationURL);
-    static void sendViolationReport(Frame&, const URL& reportURL, RefPtr<FormData>&& report);
+    static void sendViolationReport(Frame&, const URL& reportURL, RefPtr<FormData>&& report, ViolationReportType);
 
 private:
     static void startPingLoad(Frame&, ResourceRequest&);