diff options
author | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-04 21:28:48 +0000 |
---|---|---|
committer | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-04 21:28:48 +0000 |
commit | 8ee37f03d400794478584634d3d493a12f6b989d (patch) | |
tree | c6418a199d69b13bf0e05e558da2bcd60e971850 /webkit/glue/webframe_impl.cc | |
parent | 8165dcf042237c13d41aaad2a9c654c64bc4cb35 (diff) | |
download | chromium_src-8ee37f03d400794478584634d3d493a12f6b989d.zip chromium_src-8ee37f03d400794478584634d3d493a12f6b989d.tar.gz chromium_src-8ee37f03d400794478584634d3d493a12f6b989d.tar.bz2 |
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.
BUG=11423
R=mpcomplete
Review URL: http://codereview.chromium.org/100353
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15244 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webframe_impl.cc')
-rw-r--r-- | webkit/glue/webframe_impl.cc | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/webkit/glue/webframe_impl.cc b/webkit/glue/webframe_impl.cc index 3b87d4f..46faf37 100644 --- a/webkit/glue/webframe_impl.cc +++ b/webkit/glue/webframe_impl.cc @@ -150,7 +150,6 @@ MSVC_POP_WARNING(); #include "webkit/glue/webdatasource_impl.h" #include "webkit/glue/weberror_impl.h" #include "webkit/glue/webframe_impl.h" -#include "webkit/glue/webhistoryitem_impl.h" #include "webkit/glue/weburlrequest_impl.h" #include "webkit/glue/webtextinput_impl.h" #include "webkit/glue/webview_impl.h" @@ -714,25 +713,15 @@ void WebFrameImpl::CacheCurrentRequestInfo(WebDataSourceImpl* datasource) { // own requests, so the extra data needs to be transferred. scoped_refptr<WebRequest::ExtraData> extra; - // Our extra data may come from a request issued via LoadRequest, or a - // history navigation from WebCore. - if (currently_loading_request_) { + // Our extra data may come from a request issued via LoadRequest. + if (currently_loading_request_) extra = currently_loading_request_->GetExtraData(); - } else if (currently_loading_history_item_) { - extra = currently_loading_history_item_->GetExtraData(); - currently_loading_history_item_ = 0; - } // We must only update this if it is valid, or the valid state will be lost. if (extra) datasource->SetExtraData(extra); } -void WebFrameImpl::set_currently_loading_history_item( - WebHistoryItemImpl* item) { - currently_loading_history_item_ = item; -} - void WebFrameImpl::StopLoading() { if (!frame_) return; |