| Index: components/safe_browsing/renderer/threat_dom_details.cc
|
| diff --git a/components/safe_browsing/renderer/threat_dom_details.cc b/components/safe_browsing/renderer/threat_dom_details.cc
|
| index 9fd9af5a18642c10cdc3a06f644f0a3bdc4779b3..c3d712b38a78516a219e4e7d165a303a23affc6c 100644
|
| --- a/components/safe_browsing/renderer/threat_dom_details.cc
|
| +++ b/components/safe_browsing/renderer/threat_dom_details.cc
|
| @@ -16,7 +16,6 @@
|
| #include "base/strings/stringprintf.h"
|
| #include "components/safe_browsing/common/safebrowsing_messages.h"
|
| #include "components/safe_browsing/common/safebrowsing_types.h"
|
| -#include "components/safe_browsing/features.h"
|
| #include "content/public/renderer/render_frame.h"
|
| #include "third_party/WebKit/public/platform/WebString.h"
|
| #include "third_party/WebKit/public/web/WebDocument.h"
|
| @@ -35,6 +34,15 @@
|
| // The values are indices into the resource vector, and are used to retrieve IPC
|
| // messages generated by ThreatDOMDetails.
|
| using ElementToNodeMap = std::map<blink::WebNode, size_t>;
|
| +
|
| +// This Feature specifies which non-resource HTML Elements to collect based on
|
| +// their tag and attributes. It's a single param containing a comma-separated
|
| +// list of pairs. For example: "tag1,id,tag1,height,tag2,foo" - this will
|
| +// collect elements with tag "tag1" that have attribute "id" or "height" set,
|
| +// and elements of tag "tag2" if they have attribute "foo" set. All tag names
|
| +// and attributes should be lower case.
|
| +const base::Feature kThreatDomDetailsTagAndAttributeFeature{
|
| + "ThreatDomDetailsTagAttributes", base::FEATURE_DISABLED_BY_DEFAULT};
|
|
|
| // The name of the param containing the tags and attributes list.
|
| const char kTagAndAttributeParamName[] = "tag_attribute_csv";
|
|
|