OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/browser/frame_host/navigation_controller_impl.h" | 5 #include "content/browser/frame_host/navigation_controller_impl.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/strings/string_number_conversions.h" // Temporary | 10 #include "base/strings/string_number_conversions.h" // Temporary |
(...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
680 } | 680 } |
681 | 681 |
682 NavigationEntryImpl* entry = NavigationEntryImpl::FromNavigationEntry( | 682 NavigationEntryImpl* entry = NavigationEntryImpl::FromNavigationEntry( |
683 CreateNavigationEntry( | 683 CreateNavigationEntry( |
684 params.url, | 684 params.url, |
685 params.referrer, | 685 params.referrer, |
686 params.transition_type, | 686 params.transition_type, |
687 params.is_renderer_initiated, | 687 params.is_renderer_initiated, |
688 params.extra_headers, | 688 params.extra_headers, |
689 browser_context_)); | 689 browser_context_)); |
| 690 if (params.frame_tree_node_id != -1) |
| 691 entry->set_frame_tree_node_id(params.frame_tree_node_id); |
690 if (params.redirect_chain.size() > 0) | 692 if (params.redirect_chain.size() > 0) |
691 entry->set_redirect_chain(params.redirect_chain); | 693 entry->set_redirect_chain(params.redirect_chain); |
692 if (params.should_replace_current_entry) | 694 if (params.should_replace_current_entry) |
693 entry->set_should_replace_entry(true); | 695 entry->set_should_replace_entry(true); |
694 entry->set_should_clear_history_list(params.should_clear_history_list); | 696 entry->set_should_clear_history_list(params.should_clear_history_list); |
695 entry->SetIsOverridingUserAgent(override); | 697 entry->SetIsOverridingUserAgent(override); |
696 entry->set_transferred_global_request_id( | 698 entry->set_transferred_global_request_id( |
697 params.transferred_global_request_id); | 699 params.transferred_global_request_id); |
698 entry->SetFrameToNavigate(params.frame_name); | 700 entry->SetFrameToNavigate(params.frame_name); |
699 | 701 |
(...skipping 991 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1691 } | 1693 } |
1692 } | 1694 } |
1693 } | 1695 } |
1694 | 1696 |
1695 void NavigationControllerImpl::SetGetTimestampCallbackForTest( | 1697 void NavigationControllerImpl::SetGetTimestampCallbackForTest( |
1696 const base::Callback<base::Time()>& get_timestamp_callback) { | 1698 const base::Callback<base::Time()>& get_timestamp_callback) { |
1697 get_timestamp_callback_ = get_timestamp_callback; | 1699 get_timestamp_callback_ = get_timestamp_callback; |
1698 } | 1700 } |
1699 | 1701 |
1700 } // namespace content | 1702 } // namespace content |
OLD | NEW |