Use base::Optional for ResourceResponse::security_details_

Even if the SecurityStyle is Authenticated, SecurityDetails is not set while
loading "chrome://" URL resources. In that case, checking SecurityStyle in
inspector_network_agent.cc is not sufficient.

Thic CL changes ResourceResponse::security_details_ to use base::Optional.
So, we can check whether SecurityDetails is set or not.

Bug: 976192
Change-Id: Iae112de8121ed4e6a95bbb9aacd93a27623ffefa
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1675466
Commit-Queue: Tsuyoshi Horo <horo@chromium.org>
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Reviewed-by: Yutaka Hirano <yhirano@chromium.org>
Cr-Commit-Position: refs/heads/master@{#672023}
6 files changed