[sessions]: Componentize TabRestore code
commita08c5dd6dc5287fb4949035345f4f57d61d13022
authorblundell <blundell@chromium.org>
Fri, 18 Sep 2015 06:14:16 +0000 (17 23:14 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 18 Sep 2015 06:14:48 +0000 (18 06:14 +0000)
treec300ee383a8b717b5f99726c851a28764a0b675a
parentd576ac33cafebf299ad9f5eb6aa7fccef3335de6
[sessions]: Componentize TabRestore code

This CL componentizes core TabRestore code, notably:
- TabRestoreService
- its persistent and in-memory subclasses
- its delegate
- its helper
- its observer

The code has no problematic dependencies, so componentization is
straightforward.

BUG=371476

Review URL: https://codereview.chromium.org/1349783002

Cr-Commit-Position: refs/heads/master@{#349624}
46 files changed:
chrome/browser/android/recently_closed_tabs_bridge.cc
chrome/browser/android/recently_closed_tabs_bridge.h
chrome/browser/android/tab_android.cc
chrome/browser/app_controller_mac.mm
chrome/browser/browsing_data/browsing_data_remover.cc
chrome/browser/extensions/api/sessions/sessions_api.h
chrome/browser/jumplist_win.cc
chrome/browser/jumplist_win.h
chrome/browser/sessions/persistent_tab_restore_service_browsertest.cc
chrome/browser/sessions/persistent_tab_restore_service_unittest.cc
chrome/browser/sessions/session_restore_browsertest.cc
chrome/browser/sessions/tab_restore_browsertest.cc
chrome/browser/sessions/tab_restore_service_factory.cc
chrome/browser/ui/ash/chrome_new_window_delegate.cc
chrome/browser/ui/browser.cc
chrome/browser/ui/browser_command_controller.cc
chrome/browser/ui/browser_command_controller.h
chrome/browser/ui/browser_commands.cc
chrome/browser/ui/browser_tab_restore_service_delegate.h
chrome/browser/ui/browser_tab_restorer.cc
chrome/browser/ui/browser_tab_strip_model_delegate.cc
chrome/browser/ui/browser_tabrestore_browsertest.cc
chrome/browser/ui/cocoa/history_menu_bridge.h
chrome/browser/ui/cocoa/history_menu_bridge_unittest.mm
chrome/browser/ui/cocoa/history_menu_cocoa_controller.mm
chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc
chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.h
chrome/browser/ui/toolbar/recent_tabs_sub_menu_model_unittest.cc
chrome/browser/ui/views/frame/browser_view.cc
chrome/browser/ui/views/frame/global_menu_bar_x11.cc
chrome/browser/ui/views/frame/global_menu_bar_x11.h
chrome/browser/ui/views/frame/system_menu_model_delegate.cc
chrome/chrome_browser.gypi
components/sessions.gypi
components/sessions/BUILD.gn
components/sessions/core/DEPS [new file with mode: 0644]
components/sessions/core/in_memory_tab_restore_service.cc [moved from chrome/browser/sessions/in_memory_tab_restore_service.cc with 97% similarity]
components/sessions/core/in_memory_tab_restore_service.h [moved from chrome/browser/sessions/in_memory_tab_restore_service.h with 82% similarity]
components/sessions/core/persistent_tab_restore_service.cc [moved from chrome/browser/sessions/persistent_tab_restore_service.cc with 99% similarity]
components/sessions/core/persistent_tab_restore_service.h [moved from chrome/browser/sessions/persistent_tab_restore_service.h with 81% similarity]
components/sessions/core/tab_restore_service.cc [moved from chrome/browser/sessions/tab_restore_service.cc with 97% similarity]
components/sessions/core/tab_restore_service.h [moved from chrome/browser/sessions/tab_restore_service.h with 93% similarity]
components/sessions/core/tab_restore_service_delegate.h [moved from chrome/browser/sessions/tab_restore_service_delegate.h with 88% similarity]
components/sessions/core/tab_restore_service_helper.cc [moved from chrome/browser/sessions/tab_restore_service_helper.cc with 98% similarity]
components/sessions/core/tab_restore_service_helper.h [moved from chrome/browser/sessions/tab_restore_service_helper.h with 95% similarity]
components/sessions/core/tab_restore_service_observer.h [moved from chrome/browser/sessions/tab_restore_service_observer.h with 72% similarity]