[GRC] Implement TabDoneLoading signal

Desktop / Chromium - Peiyong Lin [chromium.org] - 14 July 2017 16:52 EDT

This patch creates GRC TabSignalObserver for TabManager to get tab scoped signals from GRC, implements TabDoneLoading signal and eventually sends it to TabManager::WebContentsData, and changes network idle signal to be persisted.

TBR=japhet@chromium.org BUG=730098

Change-Id: I5ba9be4365cc79b0d1e6f19e44ec93eeaf0408ee Reviewed-on: https://chromium-review.googlesource.com/563832 Commit-Queue: lpy

6fa50ab [GRC] Implement TabDoneLoading signal.
chrome/browser/BUILD.gn | 2 +
chrome/browser/resource_coordinator/tab_manager.cc | 30 ++++++++++
chrome/browser/resource_coordinator/tab_manager.h | 8 +++
.../tab_manager_grc_tab_signal_observer.cc | 54 +++++++++++++++++
.../tab_manager_grc_tab_signal_observer.h | 46 +++++++++++++++
.../tab_manager_web_contents_data.h | 3 +
.../public/app/mojo/content_browser_manifest.json | 2 +-
services/resource_coordinator/BUILD.gn | 4 +-
.../coordination_unit/coordination_unit_impl.cc | 12 +++-
.../coordination_unit/coordination_unit_impl.h | 4 ++
.../frame_coordination_unit_impl.cc | 8 +++
.../frame_coordination_unit_impl.h | 4 +-
.../coordination_unit/tab_signal_generator.cc | 20 -------
.../coordination_unit/tab_signal_generator.h | 32 ----------
.../coordination_unit/tab_signal_generator_impl.cc | 69 ++++++++++++++++++++++
.../coordination_unit/tab_signal_generator_impl.h | 56 ++++++++++++++++++
services/resource_coordinator/manifest.json | 1 +
.../public/cpp/coordination_unit_id.h | 5 ++
.../public/cpp/resource_coordinator_features.cc | 8 +++
.../public/cpp/resource_coordinator_features.h | 7 +++
.../public/cpp/resource_coordinator_interface.cc | 1 +
.../public/cpp/resource_coordinator_interface.h | 2 +
.../public/interfaces/BUILD.gn | 1 +
.../public/interfaces/coordination_unit.mojom | 1 +
.../public/interfaces/events.mojom | 6 +-
.../public/interfaces/tab_signal.mojom | 31 ++++++++++
.../resource_coordinator_service.cc | 17 +++---
.../Source/core/loader/NetworkQuietDetector.cpp | 4 +-
.../FrameResourceCoordinator.cpp | 16 ++---
.../FrameResourceCoordinator.h | 3 +-
30 files changed, 373 insertions(+), 84 deletions(-)

Upstream: git.chromium.org


  • Share