OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/common/navigation_params.h" | 5 #include "content/common/navigation_params.h" |
6 | 6 |
7 #include "base/memory/ref_counted_memory.h" | 7 #include "base/memory/ref_counted_memory.h" |
8 | 8 |
9 namespace content { | 9 namespace content { |
10 | 10 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 StartNavigationParams::~StartNavigationParams() { | 78 StartNavigationParams::~StartNavigationParams() { |
79 } | 79 } |
80 | 80 |
81 RequestNavigationParams::RequestNavigationParams() | 81 RequestNavigationParams::RequestNavigationParams() |
82 : is_overriding_user_agent(false), | 82 : is_overriding_user_agent(false), |
83 browser_navigation_start(base::TimeTicks::Now()), | 83 browser_navigation_start(base::TimeTicks::Now()), |
84 can_load_local_resources(false), | 84 can_load_local_resources(false), |
85 request_time(base::Time::Now()), | 85 request_time(base::Time::Now()), |
86 page_id(-1), | 86 page_id(-1), |
87 nav_entry_id(0), | 87 nav_entry_id(0), |
| 88 has_committed_real_load(false), |
88 intended_as_new_entry(false), | 89 intended_as_new_entry(false), |
89 pending_history_list_offset(-1), | 90 pending_history_list_offset(-1), |
90 current_history_list_offset(-1), | 91 current_history_list_offset(-1), |
91 current_history_list_length(0), | 92 current_history_list_length(0), |
92 should_clear_history_list(false) { | 93 should_clear_history_list(false) { |
93 } | 94 } |
94 | 95 |
95 RequestNavigationParams::RequestNavigationParams( | 96 RequestNavigationParams::RequestNavigationParams( |
96 bool is_overriding_user_agent, | 97 bool is_overriding_user_agent, |
97 base::TimeTicks navigation_start, | 98 base::TimeTicks navigation_start, |
98 const std::vector<GURL>& redirects, | 99 const std::vector<GURL>& redirects, |
99 bool can_load_local_resources, | 100 bool can_load_local_resources, |
100 base::Time request_time, | 101 base::Time request_time, |
101 const PageState& page_state, | 102 const PageState& page_state, |
102 int32 page_id, | 103 int32 page_id, |
103 int nav_entry_id, | 104 int nav_entry_id, |
| 105 bool has_committed_real_load, |
104 bool intended_as_new_entry, | 106 bool intended_as_new_entry, |
105 int pending_history_list_offset, | 107 int pending_history_list_offset, |
106 int current_history_list_offset, | 108 int current_history_list_offset, |
107 int current_history_list_length, | 109 int current_history_list_length, |
108 bool should_clear_history_list) | 110 bool should_clear_history_list) |
109 : is_overriding_user_agent(is_overriding_user_agent), | 111 : is_overriding_user_agent(is_overriding_user_agent), |
110 browser_navigation_start(navigation_start), | 112 browser_navigation_start(navigation_start), |
111 redirects(redirects), | 113 redirects(redirects), |
112 can_load_local_resources(can_load_local_resources), | 114 can_load_local_resources(can_load_local_resources), |
113 request_time(request_time), | 115 request_time(request_time), |
114 page_state(page_state), | 116 page_state(page_state), |
115 page_id(page_id), | 117 page_id(page_id), |
116 nav_entry_id(nav_entry_id), | 118 nav_entry_id(nav_entry_id), |
| 119 has_committed_real_load(has_committed_real_load), |
117 intended_as_new_entry(intended_as_new_entry), | 120 intended_as_new_entry(intended_as_new_entry), |
118 pending_history_list_offset(pending_history_list_offset), | 121 pending_history_list_offset(pending_history_list_offset), |
119 current_history_list_offset(current_history_list_offset), | 122 current_history_list_offset(current_history_list_offset), |
120 current_history_list_length(current_history_list_length), | 123 current_history_list_length(current_history_list_length), |
121 should_clear_history_list(should_clear_history_list) { | 124 should_clear_history_list(should_clear_history_list) { |
122 } | 125 } |
123 | 126 |
124 RequestNavigationParams::~RequestNavigationParams() { | 127 RequestNavigationParams::~RequestNavigationParams() { |
125 } | 128 } |
126 | 129 |
127 NavigationParams::NavigationParams( | 130 NavigationParams::NavigationParams( |
128 const CommonNavigationParams& common_params, | 131 const CommonNavigationParams& common_params, |
129 const StartNavigationParams& start_params, | 132 const StartNavigationParams& start_params, |
130 const RequestNavigationParams& request_params) | 133 const RequestNavigationParams& request_params) |
131 : common_params(common_params), | 134 : common_params(common_params), |
132 start_params(start_params), | 135 start_params(start_params), |
133 request_params(request_params) { | 136 request_params(request_params) { |
134 } | 137 } |
135 | 138 |
136 NavigationParams::~NavigationParams() { | 139 NavigationParams::~NavigationParams() { |
137 } | 140 } |
138 | 141 |
139 } // namespace content | 142 } // namespace content |
OLD | NEW |