Migrate PLM metrics for data reduction proxy for network-servicification

Move data reduction proxy PLM observer to use OnResourceDataUpdate and use
compression ratio to compute the original content length. This CL also plumbs
URL to RenderFrameObserver::DidStartResponse to distinguish if its a secure
(https) scheme.

Bug: 898326
Change-Id: I82ba4fecc7d40b078d49c1b2c722a8ae87917e26
Reviewed-on: https://chromium-review.googlesource.com/c/1313410
Commit-Queue: rajendrant <[email protected]>
Reviewed-by: Jesse Doherty <[email protected]>
Reviewed-by: Kinuko Yasuda <[email protected]>
Reviewed-by: Ryan Sturm <[email protected]>
Cr-Commit-Position: refs/heads/master@{#605511}
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
index 7311a27..d736be79 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -904,7 +904,8 @@
   // browser.
   void OnDroppedNavigation();
 
-  void DidStartResponse(int request_id,
+  void DidStartResponse(const GURL& response_url,
+                        int request_id,
                         const network::ResourceResponseHead& response_head,
                         content::ResourceType resource_type);
   void DidCompleteResponse(int request_id,