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 "ios/web/navigation/navigation_item_impl.h" | 5 #include "ios/web/navigation/navigation_item_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <utility> | 10 #include <utility> |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 should_skip_resubmit_data_confirmation_(false), | 44 should_skip_resubmit_data_confirmation_(false), |
45 is_renderer_initiated_(false), | 45 is_renderer_initiated_(false), |
46 is_unsafe_(false), | 46 is_unsafe_(false), |
47 facade_delegate_(nullptr) { | 47 facade_delegate_(nullptr) { |
48 } | 48 } |
49 | 49 |
50 NavigationItemImpl::~NavigationItemImpl() { | 50 NavigationItemImpl::~NavigationItemImpl() { |
51 } | 51 } |
52 | 52 |
53 NavigationItemImpl::NavigationItemImpl(const NavigationItemImpl& item) | 53 NavigationItemImpl::NavigationItemImpl(const NavigationItemImpl& item) |
54 : unique_id_(item.unique_id_), | 54 : extra_data_(item.extra_data_), |
| 55 unique_id_(item.unique_id_), |
55 url_(item.url_), | 56 url_(item.url_), |
56 referrer_(item.referrer_), | 57 referrer_(item.referrer_), |
57 virtual_url_(item.virtual_url_), | 58 virtual_url_(item.virtual_url_), |
58 title_(item.title_), | 59 title_(item.title_), |
59 page_display_state_(item.page_display_state_), | 60 page_display_state_(item.page_display_state_), |
60 transition_type_(item.transition_type_), | 61 transition_type_(item.transition_type_), |
61 favicon_(item.favicon_), | 62 favicon_(item.favicon_), |
62 ssl_(item.ssl_), | 63 ssl_(item.ssl_), |
63 timestamp_(item.timestamp_), | 64 timestamp_(item.timestamp_), |
64 is_overriding_user_agent_(item.is_overriding_user_agent_), | 65 is_overriding_user_agent_(item.is_overriding_user_agent_), |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 void NavigationItemImpl::ResetHttpRequestHeaders() { | 266 void NavigationItemImpl::ResetHttpRequestHeaders() { |
266 http_request_headers_.reset(); | 267 http_request_headers_.reset(); |
267 } | 268 } |
268 | 269 |
269 void NavigationItemImpl::ResetForCommit() { | 270 void NavigationItemImpl::ResetForCommit() { |
270 // Any state that only matters when a navigation item is pending should be | 271 // Any state that only matters when a navigation item is pending should be |
271 // cleared here. | 272 // cleared here. |
272 set_is_renderer_initiated(false); | 273 set_is_renderer_initiated(false); |
273 } | 274 } |
274 | 275 |
| 276 NSDictionary* NavigationItemImpl::GetExtraData() const { |
| 277 return extra_data_; |
| 278 } |
| 279 |
275 } // namespace web | 280 } // namespace web |
OLD | NEW |