|
This is almost a complete rewrite of DidNavigate and the associated NavigationController logic. The approach is that the NavigationController should be responsible for the logic and memory management of navigation. Previously, half the logic and memory management lived in WebContents which made it very hard to figure out what was going on.
I split out the various navigation types into separate functions, which then copy and update any existing NavigationEntry as necessary. Previously, WebContents would make a new one which would be manually populated with random fields (I think some were forgotten, too), and then the NavigationController may or may not commit it.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=2201
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1285 lines, -985 lines) |
Patch |
 |
M |
chrome/browser/back_forward_menu_model_unittest.cc
|
View
|
2
3
4
5
6
7
|
1 chunk |
+5 lines, -15 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/dom_ui/new_tab_ui.cc
|
View
|
2
3
4
5
6
7
|
1 chunk |
+3 lines, -9 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/native_ui_contents.cc
|
View
|
1
2
3
4
5
6
|
4 chunks |
+26 lines, -22 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/navigation_controller.h
|
View
|
1
2
3
4
5
6
7
|
15 chunks |
+236 lines, -158 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/navigation_controller.cc
|
View
|
1
2
3
4
5
6
7
|
19 chunks |
+427 lines, -168 lines |
4 comments
|
Download
|
 |
M |
chrome/browser/navigation_controller_unittest.cc
|
View
|
2
3
4
5
6
7
|
43 chunks |
+442 lines, -229 lines |
4 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/safe_browsing_blocking_page.cc
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+6 lines, -16 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/session_service.cc
|
View
|
2
3
4
5
6
|
1 chunk |
+7 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/session_service_test_helper.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ssl_blocking_page.cc
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+22 lines, -22 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ssl_manager.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ssl_policy.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/tab_contents.h
|
View
|
1
2
3
4
5
|
3 chunks |
+10 lines, -12 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/tab_contents.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+14 lines, -37 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/tabs/tab_strip_model_unittest.cc
|
View
|
2
3
4
5
6
7
|
1 chunk |
+0 lines, -17 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/web_contents.h
|
View
|
1
2
3
4
5
|
5 chunks |
+5 lines, -22 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/web_contents.cc
|
View
|
1
2
3
4
5
6
|
16 chunks |
+48 lines, -190 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/web_contents_unittest.cc
|
View
|
2
3
|
22 chunks |
+25 lines, -61 lines |
0 comments
|
Download
|
 |
M |
chrome/common/notification_types.h
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/common/render_messages.h
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
Total messages: 12 (0 generated)
|