OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/public/renderer/navigation_state.h" | 5 #include "content/public/renderer/navigation_state.h" |
6 | 6 |
7 namespace content { | 7 namespace content { |
8 | 8 |
9 NavigationState::NavigationState(ui::PageTransition transition_type, | 9 NavigationState::NavigationState(ui::PageTransition transition_type, |
10 bool is_content_initiated, | 10 bool is_content_initiated, |
11 int32 pending_page_id, | 11 int32 pending_page_id, |
| 12 int pending_nav_entry_id, |
12 int pending_history_list_offset, | 13 int pending_history_list_offset, |
13 bool history_list_was_cleared) | 14 bool history_list_was_cleared) |
14 : transition_type_(transition_type), | 15 : transition_type_(transition_type), |
15 request_committed_(false), | 16 request_committed_(false), |
16 is_content_initiated_(is_content_initiated), | 17 is_content_initiated_(is_content_initiated), |
17 pending_page_id_(pending_page_id), | 18 pending_page_id_(pending_page_id), |
| 19 pending_nav_entry_id_(pending_nav_entry_id), |
18 pending_history_list_offset_(pending_history_list_offset), | 20 pending_history_list_offset_(pending_history_list_offset), |
19 history_list_was_cleared_(history_list_was_cleared), | 21 history_list_was_cleared_(history_list_was_cleared), |
20 should_replace_current_entry_(false), | 22 should_replace_current_entry_(false), |
21 was_within_same_page_(false), | 23 was_within_same_page_(false), |
22 transferred_request_child_id_(-1), | 24 transferred_request_child_id_(-1), |
23 transferred_request_request_id_(-1), | 25 transferred_request_request_id_(-1), |
24 allow_download_(true) { | 26 allow_download_(true) { |
25 } | 27 } |
26 | 28 |
27 NavigationState::~NavigationState() {} | 29 NavigationState::~NavigationState() {} |
28 | 30 |
29 } // namespace content | 31 } // namespace content |
OLD | NEW |