LazyLoad: Add support for restricting LazyLoad to Data Saver users.

This CL adds support for restricting the lazy loading of frames and
images separately by field trial parameters. For lazy image loading, to
avoid the performance hit from repeatedly locking the mutex in
NetworkStateNotifier, the value of
NetworkStateNotifier::SaveDataEnabled() is queried once for each frame
and used for all images in that frame.

Bug: 901571
Change-Id: Ic08416ebe40b6377d5c383616b4f0ceff920637a
Reviewed-on: https://chromium-review.googlesource.com/c/1354694
Commit-Queue: Scott Little <sclittle@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Pavel Feldman <pfeldman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612554}
9 files changed