|
|
Abstract WebContents/NavigationController from core TabRestore code
As the final piece of eliminating //content dependencies from core TabRestore
code to enable clean integration with iOS, this CL eliminates that code's
knowledge of WebContents and NavigationController.
To do so, it introduces an LiveTab interface that is an abstract representation
of an open tab from the tab restore POV. It also introduces a ContentLiveTab
implementation that is backed by WebContents and used by //chrome.
Core TabRestore code is moved from talking to WebContents/NavigationController
to talking to LiveTab. //chrome usage of this core code is changed to convert
back and forth between a (Content)LiveTab and WebContents as necessary, using
the fact that ContentLiveTab is a WebContentsUserData with a web_contents()
accessor.
BUG= 530174
Committed: https://crrev.com/80c5b2a0321d38d4af5761c7078c8972828eaa31
Cr-Commit-Position: refs/heads/master@{#349454}
Total comments: 11
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+372 lines, -195 lines) |
Patch |
 |
M |
chrome/browser/android/tab_android.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/sessions/sessions_api.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+18 lines, -14 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sessions/chrome_tab_restore_service_client.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+5 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sessions/chrome_tab_restore_service_client.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
4 chunks |
+12 lines, -9 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sessions/in_memory_tab_restore_service.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sessions/in_memory_tab_restore_service.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
4 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sessions/persistent_tab_restore_service.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sessions/persistent_tab_restore_service.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
4 chunks |
+7 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sessions/persistent_tab_restore_service_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
17 chunks |
+19 lines, -14 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sessions/session_restore_browsertest.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+9 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sessions/tab_restore_service.h
|
View
|
1
2
3
4
5
6
7
8
9
|
4 chunks |
+8 lines, -9 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sessions/tab_restore_service_delegate.h
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+6 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sessions/tab_restore_service_helper.h
|
View
|
1
2
3
4
5
6
7
8
9
|
4 chunks |
+8 lines, -13 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sessions/tab_restore_service_helper.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
14 chunks |
+44 lines, -57 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/browser_tab_restore_service_delegate.h
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+8 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/browser_tab_restore_service_delegate.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
5 chunks |
+22 lines, -14 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/browser_tab_strip_model_delegate.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/tab_helpers.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/sessions.gypi
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/sessions/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
A |
components/sessions/content/content_live_tab.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+67 lines, -0 lines |
0 comments
|
Download
|
 |
A |
components/sessions/content/content_live_tab.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+65 lines, -0 lines |
0 comments
|
Download
|
 |
A |
components/sessions/core/live_tab.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+39 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/sessions/core/tab_restore_service_client.h
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+7 lines, -17 lines |
0 comments
|
Download
|
 |
M |
components/sessions/core/tab_restore_service_client.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
Total messages: 19 (6 generated)
|