OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 1117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1128 return false; | 1128 return false; |
1129 } | 1129 } |
1130 | 1130 |
1131 WebViewImpl* webview = m_webFrame->viewImpl(); | 1131 WebViewImpl* webview = m_webFrame->viewImpl(); |
1132 if (webview->client()) | 1132 if (webview->client()) |
1133 webview->client()->navigateBackForwardSoon(offset); | 1133 webview->client()->navigateBackForwardSoon(offset); |
1134 | 1134 |
1135 return false; | 1135 return false; |
1136 } | 1136 } |
1137 | 1137 |
| 1138 bool FrameLoaderClientImpl::shouldStopLoadingForHistoryItem(HistoryItem* targetI
tem) const |
| 1139 { |
| 1140 // Don't stop loading for pseudo-back-forward URLs, since they will get |
| 1141 // translated and then pass through again. |
| 1142 const KURL& url = targetItem->url(); |
| 1143 return !url.protocolIs(backForwardNavigationScheme); |
| 1144 } |
| 1145 |
1138 void FrameLoaderClientImpl::dispatchDidAddBackForwardItem(HistoryItem*) const | 1146 void FrameLoaderClientImpl::dispatchDidAddBackForwardItem(HistoryItem*) const |
1139 { | 1147 { |
1140 } | 1148 } |
1141 | 1149 |
1142 void FrameLoaderClientImpl::dispatchDidRemoveBackForwardItem(HistoryItem*) const | 1150 void FrameLoaderClientImpl::dispatchDidRemoveBackForwardItem(HistoryItem*) const |
1143 { | 1151 { |
1144 } | 1152 } |
1145 | 1153 |
1146 void FrameLoaderClientImpl::dispatchDidChangeBackForwardIndex() const | 1154 void FrameLoaderClientImpl::dispatchDidChangeBackForwardIndex() const |
1147 { | 1155 { |
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1552 } | 1560 } |
1553 return ds->releasePluginLoadObserver(); | 1561 return ds->releasePluginLoadObserver(); |
1554 } | 1562 } |
1555 | 1563 |
1556 PassRefPtr<FrameNetworkingContext> FrameLoaderClientImpl::createNetworkingContex
t() | 1564 PassRefPtr<FrameNetworkingContext> FrameLoaderClientImpl::createNetworkingContex
t() |
1557 { | 1565 { |
1558 return FrameNetworkingContextImpl::create(m_webFrame->frame()); | 1566 return FrameNetworkingContextImpl::create(m_webFrame->frame()); |
1559 } | 1567 } |
1560 | 1568 |
1561 } // namespace WebKit | 1569 } // namespace WebKit |
OLD | NEW |