From efdb3e59f68fe34ef19dd6e52a5555e19f9b26b4 Mon Sep 17 00:00:00 2001 From: "darin@chromium.org" Date: Wed, 13 May 2009 06:02:39 +0000 Subject: Re-do r15244 again. Originally reviewed at http://codereview.chromium.org/100353 Eliminate webkit/glue/webhistoryitem* in favor of adding a NavigateBackForwardSoon method WebViewDelegate. This moves all of the hacky details of how we intercept "history.{back, forward,go}" into the webkit layer. My eventual plan is to teach WebCore how to make this not hacky. In this version of the CL, TestWebViewDelegate performs the back/forward navigation directly in NavigateBackForwardSoon instead of using PostTask to delay it. I'm doing this to minimize regressions so that I can hopefully get the rest of this CL landed. I also already made the changes to WebKit to force history. {back,forward,go} to be processed asynchronously. BUG=11423 TBR=mpcomplete Review URL: http://codereview.chromium.org/115288 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15940 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/render_messages_internal.h | 4 +- chrome/renderer/render_view.cc | 23 +----- chrome/renderer/render_view.h | 11 +-- webkit/glue/back_forward_list_client_impl.cc | 35 +++++---- webkit/glue/back_forward_list_client_impl.h | 5 +- webkit/glue/webframe_impl.cc | 15 +--- webkit/glue/webframe_impl.h | 7 -- webkit/glue/webframeloaderclient_impl.cc | 50 ++++++++---- webkit/glue/webframeloaderclient_impl.h | 3 + webkit/glue/webhistoryitem.h | 39 ---------- webkit/glue/webhistoryitem_impl.cc | 90 ---------------------- webkit/glue/webhistoryitem_impl.h | 47 ----------- webkit/glue/webview_delegate.h | 8 +- webkit/glue/webview_impl.cc | 1 - .../tools/test_shell/test_navigation_controller.cc | 13 ---- .../tools/test_shell/test_navigation_controller.h | 4 - webkit/tools/test_shell/test_webview_delegate.cc | 25 +++--- webkit/tools/test_shell/test_webview_delegate.h | 2 +- webkit/webkit.gyp | 3 - 19 files changed, 78 insertions(+), 307 deletions(-) delete mode 100644 webkit/glue/webhistoryitem.h delete mode 100644 webkit/glue/webhistoryitem_impl.cc delete mode 100644 webkit/glue/webhistoryitem_impl.h diff --git a/chrome/common/render_messages_internal.h b/chrome/common/render_messages_internal.h index 90882c1..769c6d1 100644 --- a/chrome/common/render_messages_internal.h +++ b/chrome/common/render_messages_internal.h @@ -600,7 +600,7 @@ IPC_BEGIN_MESSAGES(ViewHost) int /* route_id */, ModalDialogEvent /* modal_dialog_event */) - // Similar to ViewHostMsg_CreateView, except used for sub-widgets, like + // Similar to ViewHostMsg_CreateWindow, except used for sub-widgets, like //