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/browser/web_contents/navigation_controller_impl.h" | 5 #include "content/browser/web_contents/navigation_controller_impl.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/string_number_conversions.h" // Temporary | 10 #include "base/string_number_conversions.h" // Temporary |
(...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
690 case LOAD_TYPE_DATA: | 690 case LOAD_TYPE_DATA: |
691 entry->SetBaseURLForDataURL(params.base_url_for_data_url); | 691 entry->SetBaseURLForDataURL(params.base_url_for_data_url); |
692 entry->SetVirtualURL(params.virtual_url_for_data_url); | 692 entry->SetVirtualURL(params.virtual_url_for_data_url); |
693 entry->SetCanLoadLocalResources(params.can_load_local_resources); | 693 entry->SetCanLoadLocalResources(params.can_load_local_resources); |
694 break; | 694 break; |
695 default: | 695 default: |
696 NOTREACHED(); | 696 NOTREACHED(); |
697 break; | 697 break; |
698 }; | 698 }; |
699 | 699 |
| 700 entry->post_data = params.post_data; |
700 LoadEntry(entry); | 701 LoadEntry(entry); |
701 } | 702 } |
702 | 703 |
703 void NavigationControllerImpl::DocumentLoadedInFrame() { | 704 void NavigationControllerImpl::DocumentLoadedInFrame() { |
704 is_initial_navigation_ = false; | 705 is_initial_navigation_ = false; |
705 } | 706 } |
706 | 707 |
707 bool NavigationControllerImpl::RendererDidNavigate( | 708 bool NavigationControllerImpl::RendererDidNavigate( |
708 const ViewHostMsg_FrameNavigate_Params& params, | 709 const ViewHostMsg_FrameNavigate_Params& params, |
709 content::LoadCommittedDetails* details) { | 710 content::LoadCommittedDetails* details) { |
(...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1620 linked_ptr<NavigationEntryImpl>( | 1621 linked_ptr<NavigationEntryImpl>( |
1621 new NavigationEntryImpl(*source.entries_[i]))); | 1622 new NavigationEntryImpl(*source.entries_[i]))); |
1622 } | 1623 } |
1623 } | 1624 } |
1624 } | 1625 } |
1625 | 1626 |
1626 void NavigationControllerImpl::SetGetTimestampCallbackForTest( | 1627 void NavigationControllerImpl::SetGetTimestampCallbackForTest( |
1627 const base::Callback<base::Time()>& get_timestamp_callback) { | 1628 const base::Callback<base::Time()>& get_timestamp_callback) { |
1628 get_timestamp_callback_ = get_timestamp_callback; | 1629 get_timestamp_callback_ = get_timestamp_callback; |
1629 } | 1630 } |
OLD | NEW |