Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(481)

Side by Side Diff: third_party/WebKit/Source/core/loader/SubresourceFilter.h

Issue 2895643002: [subresource_filter] Display dev tools console message for subresource blocking (Closed)
Patch Set: rbyers@ feedback. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698