Make ResourceTimingInfo RefCounted.
Currently, ResourceTimingInfo's creation only returns a std::unique_ptr.
However, a ref-counted ResourceTimingInfo instance is needed so that a
single instance can be shared by multiple owners. The reason that this
new feature is requested is because now we expose PerformanceNavigationTiming
in a timely manner, which entails dynamically updating PerformanceNavigationTiming
instance as more information gets collected. One ResourceTimingInfo instance will
be held by a ResourceFether and a PerformanceNavigationTiming instance at the same
time. ResourceFether will keep updating ResourceTimingInfo while
PerformanceNavigationTiming consumes it. Therefore, making ResourceTimingInfo'
ref-counted is needed.
Comment 1 by bugdroid1@chromium.org
, Mar 14 2017