| 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/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 711 entry->set_frame_tree_node_id(params.frame_tree_node_id); | 711 entry->set_frame_tree_node_id(params.frame_tree_node_id); |
| 712 if (params.redirect_chain.size() > 0) | 712 if (params.redirect_chain.size() > 0) |
| 713 entry->SetRedirectChain(params.redirect_chain); | 713 entry->SetRedirectChain(params.redirect_chain); |
| 714 if (params.should_replace_current_entry) | 714 if (params.should_replace_current_entry) |
| 715 entry->set_should_replace_entry(true); | 715 entry->set_should_replace_entry(true); |
| 716 entry->set_should_clear_history_list(params.should_clear_history_list); | 716 entry->set_should_clear_history_list(params.should_clear_history_list); |
| 717 entry->SetIsOverridingUserAgent(override); | 717 entry->SetIsOverridingUserAgent(override); |
| 718 entry->set_transferred_global_request_id( | 718 entry->set_transferred_global_request_id( |
| 719 params.transferred_global_request_id); | 719 params.transferred_global_request_id); |
| 720 entry->SetFrameToNavigate(params.frame_name); | 720 entry->SetFrameToNavigate(params.frame_name); |
| 721 entry->SetIsTransitionNavigation(params.is_transition_navigation); |
| 721 | 722 |
| 722 switch (params.load_type) { | 723 switch (params.load_type) { |
| 723 case LOAD_TYPE_DEFAULT: | 724 case LOAD_TYPE_DEFAULT: |
| 724 break; | 725 break; |
| 725 case LOAD_TYPE_BROWSER_INITIATED_HTTP_POST: | 726 case LOAD_TYPE_BROWSER_INITIATED_HTTP_POST: |
| 726 entry->SetHasPostData(true); | 727 entry->SetHasPostData(true); |
| 727 entry->SetBrowserInitiatedPostData( | 728 entry->SetBrowserInitiatedPostData( |
| 728 params.browser_initiated_post_data.get()); | 729 params.browser_initiated_post_data.get()); |
| 729 break; | 730 break; |
| 730 case LOAD_TYPE_DATA: | 731 case LOAD_TYPE_DATA: |
| (...skipping 1044 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1775 } | 1776 } |
| 1776 } | 1777 } |
| 1777 } | 1778 } |
| 1778 | 1779 |
| 1779 void NavigationControllerImpl::SetGetTimestampCallbackForTest( | 1780 void NavigationControllerImpl::SetGetTimestampCallbackForTest( |
| 1780 const base::Callback<base::Time()>& get_timestamp_callback) { | 1781 const base::Callback<base::Time()>& get_timestamp_callback) { |
| 1781 get_timestamp_callback_ = get_timestamp_callback; | 1782 get_timestamp_callback_ = get_timestamp_callback; |
| 1782 } | 1783 } |
| 1783 | 1784 |
| 1784 } // namespace content | 1785 } // namespace content |
| OLD | NEW |