Reland "Add cookie security metrics"

This reverts commit ad6f7598086fc1632640cb0ec347d4400aa9fd2e.

Reason for revert: Reverting the revert because I don't think that the original CL is the culprit for net_unittests failures on Mac as these failures already appeared before the CL landed:

https://ci.chromium.org/p/chromium/builders/luci.chromium.ci/Mac10.10%20Tests/31390

Original change's description:
> Revert "Add cookie security metrics"
> 
> This reverts commit 23e0b326847587e3da819d7dbcdc69f6ab58626f.
> 
> Reason for revert: Suspected cause of net_unittests failures on Mac-10.10
> 
> Original change's description:
> > Add cookie security metrics
> > 
> > Log the degree of protection against cookie theft, split by 1st/3rd
> > party.
> > 
> > Includes a bit of TransportSecurityState refactoring (no functional
> > change) to provide easy access to HSTS lifetime.
> > 
> > Bug: 749059
> > Change-Id: Ib9ab7cff6a7fb4c65e84d7085e70ef13d5c00ba9
> > Reviewed-on: https://chromium-review.googlesource.com/978142
> > Reviewed-by: Nick Harper <[email protected]>
> > Reviewed-by: Ilya Sherman <[email protected]>
> > Reviewed-by: Mike West <[email protected]>
> > Commit-Queue: Thiemo Nagel <[email protected]>
> > Cr-Commit-Position: refs/heads/master@{#551644}
> 
> [email protected],[email protected],[email protected],[email protected]
> 
> Change-Id: I9e7411956eb5d748b547edcf6aec7f40dde88d8d
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Bug: 749059
> Reviewed-on: https://chromium-review.googlesource.com/1017141
> Reviewed-by: Mohsen Izadi <[email protected]>
> Commit-Queue: Mohsen Izadi <[email protected]>
> Cr-Commit-Position: refs/heads/master@{#551698}

[email protected],[email protected],[email protected],[email protected],[email protected]

Change-Id: Ib3260311c6455b5892619e83352da4780ac466a6
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 749059
Reviewed-on: https://chromium-review.googlesource.com/1016649
Reviewed-by: Thiemo Nagel <[email protected]>
Commit-Queue: Thiemo Nagel <[email protected]>
Cr-Commit-Position: refs/heads/master@{#551721}
8 files changed