| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/test/render_view_fake_resources_test.h" | 5 #include "content/test/render_view_fake_resources_test.h" |
| 6 | 6 |
| 7 #include <string.h> | 7 #include <string.h> |
| 8 | 8 |
| 9 #include "base/process.h" | 9 #include "base/process.h" |
| 10 #include "base/shared_memory.h" | 10 #include "base/shared_memory.h" |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 const WebKit::WebHistoryItem& history_item) { | 191 const WebKit::WebHistoryItem& history_item) { |
| 192 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_); | 192 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_); |
| 193 ViewMsg_Navigate_Params params; | 193 ViewMsg_Navigate_Params params; |
| 194 params.page_id = impl->GetPageId() + offset; | 194 params.page_id = impl->GetPageId() + offset; |
| 195 params.pending_history_list_offset = | 195 params.pending_history_list_offset = |
| 196 impl->history_list_offset() + offset; | 196 impl->history_list_offset() + offset; |
| 197 params.current_history_list_offset = impl->history_list_offset(); | 197 params.current_history_list_offset = impl->history_list_offset(); |
| 198 params.current_history_list_length = (impl->historyBackListCount() + | 198 params.current_history_list_length = (impl->historyBackListCount() + |
| 199 impl->historyForwardListCount() + 1); | 199 impl->historyForwardListCount() + 1); |
| 200 params.url = GURL(history_item.urlString()); | 200 params.url = GURL(history_item.urlString()); |
| 201 params.transition = PageTransition::FORWARD_BACK; | 201 params.transition = content::PAGE_TRANSITION_FORWARD_BACK; |
| 202 params.state = webkit_glue::HistoryItemToString(history_item); | 202 params.state = webkit_glue::HistoryItemToString(history_item); |
| 203 params.navigation_type = ViewMsg_Navigate_Type::NORMAL; | 203 params.navigation_type = ViewMsg_Navigate_Type::NORMAL; |
| 204 params.request_time = base::Time::Now(); | 204 params.request_time = base::Time::Now(); |
| 205 channel_->Send(new ViewMsg_Navigate(impl->routing_id(), params)); | 205 channel_->Send(new ViewMsg_Navigate(impl->routing_id(), params)); |
| 206 message_loop_.Run(); | 206 message_loop_.Run(); |
| 207 } | 207 } |
| OLD | NEW |