OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef SubresourceFilter_h | 5 #ifndef SubresourceFilter_h |
6 #define SubresourceFilter_h | 6 #define SubresourceFilter_h |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "core/CoreExport.h" | 10 #include "core/CoreExport.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 WebURLRequest::RequestContext, | 33 WebURLRequest::RequestContext, |
34 SecurityViolationReportingPolicy); | 34 SecurityViolationReportingPolicy); |
35 bool AllowWebSocketConnection(const KURL&); | 35 bool AllowWebSocketConnection(const KURL&); |
36 | 36 |
37 DEFINE_INLINE_TRACE() { visitor->Trace(document_loader_); } | 37 DEFINE_INLINE_TRACE() { visitor->Trace(document_loader_); } |
38 | 38 |
39 private: | 39 private: |
40 SubresourceFilter(DocumentLoader*, | 40 SubresourceFilter(DocumentLoader*, |
41 std::unique_ptr<WebDocumentSubresourceFilter>); | 41 std::unique_ptr<WebDocumentSubresourceFilter>); |
42 | 42 |
43 void ReportLoad(WebDocumentSubresourceFilter::LoadPolicy); | 43 void ReportLoad(const KURL& resource_url, |
| 44 WebDocumentSubresourceFilter::LoadPolicy); |
44 | 45 |
45 Member<DocumentLoader> document_loader_; | 46 Member<DocumentLoader> document_loader_; |
46 std::unique_ptr<WebDocumentSubresourceFilter> subresource_filter_; | 47 std::unique_ptr<WebDocumentSubresourceFilter> subresource_filter_; |
47 }; | 48 }; |
48 | 49 |
49 } // namespace blink | 50 } // namespace blink |
50 | 51 |
51 #endif // SubresourceFilter_h | 52 #endif // SubresourceFilter_h |
OLD | NEW |