Add taskids for navigation, created in session sync

Desktop / Chromium - shenchao [chromium.org] - 20 April 2017 19:29 EDT

This is the first step to introduce task in Chrome, which links and groups navigations. Each navigation has a task id and a list of its ancestor's task ids. A navigation's task id is TabNavigation's global id when the navigation is first visited and then reused by going back/forward visits. The task ids are created and sent to backend in session sync.

And for now we only track navigation relationship in a tab.

BUG=707978

Review-Url: https://codereview.chromium.org/2776633003 Cr-Commit-Position: refs/heads/master@{#466188}

965fab9 Add taskids for navigation, created in session sync.
components/sync/protocol/session_specifics.proto | 12 ++
components/sync_sessions/BUILD.gn | 3 +
components/sync_sessions/sessions_sync_manager.cc | 59 +++++-
components/sync_sessions/sessions_sync_manager.h | 10 ++
.../sessions_sync_manager_unittest.cc | 68 ++++++-
components/sync_sessions/task_tracker.cc | 173 ++++++++++++++++++
components/sync_sessions/task_tracker.h | 102 +++++++++++
components/sync_sessions/task_tracker_unittest.cc | 198 +++++++++++++++++++++
8 files changed, 619 insertions(+), 6 deletions(-)

Upstream: git.chromium.org


  • Share