mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-10-31 13:20:59 +00:00 
			
		
		
		
	 855e17529c
			
		
	
	
		855e17529c
		
	
	
	
	
		
			
			This doesn't do anything by itself, the report a violation algorithm will handle this directive itself.
		
			
				
	
	
		
			25 lines
		
	
	
	
		
			561 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
	
		
			561 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2024, Luke Wilde <luke@ladybird.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <LibWeb/ContentSecurityPolicy/Directives/Directive.h>
 | |
| 
 | |
| namespace Web::ContentSecurityPolicy::Directives {
 | |
| 
 | |
| // https://w3c.github.io/webappsec-csp/#directive-report-to
 | |
| class ReportToDirective final : public Directive {
 | |
|     GC_CELL(ReportToDirective, Directive)
 | |
|     GC_DECLARE_ALLOCATOR(ReportToDirective);
 | |
| 
 | |
| public:
 | |
|     virtual ~ReportToDirective() = default;
 | |
| 
 | |
| private:
 | |
|     ReportToDirective(String name, Vector<String> value);
 | |
| };
 | |
| 
 | |
| }
 |