| OLD | NEW |
| 1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. Use of this |
| 2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
| 3 // LICENSE file. | 3 // LICENSE file. |
| 4 | 4 |
| 5 #include "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include "HistoryItem.h" | 7 #include "HistoryItem.h" |
| 8 #undef LOG | 8 #undef LOG |
| 9 | 9 |
| 10 #include "webkit/api/public/WebViewClient.h" |
| 10 #include "webkit/glue/back_forward_list_client_impl.h" | 11 #include "webkit/glue/back_forward_list_client_impl.h" |
| 11 #include "webkit/glue/webview_impl.h" | 12 #include "webkit/glue/webview_impl.h" |
| 12 | 13 |
| 13 namespace webkit_glue { | 14 namespace webkit_glue { |
| 14 | 15 |
| 15 const char kBackForwardNavigationScheme[] = "chrome-back-forward"; | 16 const char kBackForwardNavigationScheme[] = "chrome-back-forward"; |
| 16 | 17 |
| 17 BackForwardListClientImpl::BackForwardListClientImpl(WebViewImpl* webview) | 18 BackForwardListClientImpl::BackForwardListClientImpl(WebViewImpl* webview) |
| 18 : webview_(webview) { | 19 : webview_(webview) { |
| 19 } | 20 } |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 return webview_->client()->historyForwardListCount(); | 92 return webview_->client()->historyForwardListCount(); |
| 92 } | 93 } |
| 93 | 94 |
| 94 void BackForwardListClientImpl::close() { | 95 void BackForwardListClientImpl::close() { |
| 95 current_item_ = NULL; | 96 current_item_ = NULL; |
| 96 previous_item_ = NULL; | 97 previous_item_ = NULL; |
| 97 pending_history_item_ = NULL; | 98 pending_history_item_ = NULL; |
| 98 } | 99 } |
| 99 | 100 |
| 100 } // namespace webkit_glue | 101 } // namespace webkit_glue |
| OLD | NEW |