| Index: components/subresource_filter/content/renderer/document_subresource_filter.cc
|
| diff --git a/components/subresource_filter/content/renderer/document_subresource_filter.cc b/components/subresource_filter/content/renderer/document_subresource_filter.cc
|
| index 3b55625b516e1dd53389ba301214e10e3dee32da..f1e4fcebce86070a5773899b2e311ad1a8191a18 100644
|
| --- a/components/subresource_filter/content/renderer/document_subresource_filter.cc
|
| +++ b/components/subresource_filter/content/renderer/document_subresource_filter.cc
|
| @@ -9,6 +9,7 @@
|
| #include "base/logging.h"
|
| #include "base/strings/string_piece.h"
|
| #include "base/strings/string_util.h"
|
| +#include "base/trace_event/trace_event.h"
|
| #include "components/subresource_filter/core/common/memory_mapped_ruleset.h"
|
| #include "third_party/WebKit/public/platform/WebURL.h"
|
| #include "url/gurl.h"
|
| @@ -29,6 +30,8 @@ DocumentSubresourceFilter::~DocumentSubresourceFilter() = default;
|
| bool DocumentSubresourceFilter::allowLoad(
|
| const blink::WebURL& resourceUrl,
|
| blink::WebURLRequest::RequestContext /* ignored */) {
|
| + TRACE_EVENT1("loader", "DocumentSubresourceFilter::allowLoad", "url",
|
| + resourceUrl.string().utf8());
|
| ++num_loads_evaluated_;
|
| if (DoesLoadMatchFilteringRules(GURL(resourceUrl))) {
|
| ++num_loads_matching_rules_;
|
|
|