OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "chrome/test/test_tab_contents.h" | 5 #include "chrome/test/test_tab_contents.h" |
6 | 6 |
7 #include "chrome/browser/tab_contents/navigation_entry.h" | 7 #include "chrome/browser/tab_contents/navigation_entry.h" |
| 8 #include "chrome/common/render_messages.h" |
8 | 9 |
9 // static | 10 // static |
10 SiteInstance* TestTabContents::site_instance_ = NULL; | 11 SiteInstance* TestTabContents::site_instance_ = NULL; |
11 | 12 |
12 TestTabContents::TestTabContents(TabContentsType type) | 13 TestTabContents::TestTabContents(TabContentsType type) |
13 : TabContents(type), | 14 : TabContents(type), |
14 commit_on_navigate_(false), | 15 commit_on_navigate_(false), |
15 next_page_id_(1) { | 16 next_page_id_(1) { |
16 } | 17 } |
17 | 18 |
(...skipping 11 matching lines...) Expand all Loading... |
29 params.page_id = page_id; | 30 params.page_id = page_id; |
30 params.url = url; | 31 params.url = url; |
31 params.transition = PageTransition::LINK; | 32 params.transition = PageTransition::LINK; |
32 params.should_update_history = false; | 33 params.should_update_history = false; |
33 params.gesture = NavigationGestureUser; | 34 params.gesture = NavigationGestureUser; |
34 params.is_post = false; | 35 params.is_post = false; |
35 | 36 |
36 NavigationController::LoadCommittedDetails details; | 37 NavigationController::LoadCommittedDetails details; |
37 controller()->RendererDidNavigate(params, &details); | 38 controller()->RendererDidNavigate(params, &details); |
38 } | 39 } |
OLD | NEW |