Add RendererMemoryTiming UMA for ServiceWorkerControlledMainFrames

We want to use these metrics to measure the memory impact of
PWAFullCodeCache.

BUG=768705

Change-Id: I1d3f669d0aca6ebd544ed6a05a0bb373a3fa2ddf
Reviewed-on: https://chromium-review.googlesource.com/771110
Commit-Queue: Tsuyoshi Horo <[email protected]>
Reviewed-by: Alexei Svitkine <[email protected]>
Reviewed-by: Kunihiko Sakamoto <[email protected]>
Reviewed-by: Keishi Hattori <[email protected]>
Reviewed-by: Kinuko Yasuda <[email protected]>
Cr-Commit-Position: refs/heads/master@{#516908}
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
index 7789f472..8764ef3 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -1255,6 +1255,9 @@
   // Whether or not a navigation in this frame consumes user gestures.
   bool ConsumeGestureOnNavigation() const;
 
+  // Whether or not the frame is controlled by a service worker.
+  bool IsControlledByServiceWorker();
+
   mojom::URLLoaderFactory* custom_url_loader_factory() {
     return custom_url_loader_factory_.get();
   }