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 690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
701 | 701 |
702 switch (params.load_type) { | 702 switch (params.load_type) { |
703 case LOAD_TYPE_DEFAULT: | 703 case LOAD_TYPE_DEFAULT: |
704 break; | 704 break; |
705 case LOAD_TYPE_BROWSER_INITIATED_HTTP_POST: | 705 case LOAD_TYPE_BROWSER_INITIATED_HTTP_POST: |
706 entry->SetHasPostData(true); | 706 entry->SetHasPostData(true); |
707 entry->SetBrowserInitiatedPostData( | 707 entry->SetBrowserInitiatedPostData( |
708 params.browser_initiated_post_data.get()); | 708 params.browser_initiated_post_data.get()); |
709 break; | 709 break; |
710 case LOAD_TYPE_DATA: | 710 case LOAD_TYPE_DATA: |
| 711 entry->SetDataForDataURL(params.data_for_data_url); |
711 entry->SetBaseURLForDataURL(params.base_url_for_data_url); | 712 entry->SetBaseURLForDataURL(params.base_url_for_data_url); |
712 entry->SetVirtualURL(params.virtual_url_for_data_url); | 713 entry->SetVirtualURL(params.virtual_url_for_data_url); |
713 entry->SetCanLoadLocalResources(params.can_load_local_resources); | 714 entry->SetCanLoadLocalResources(params.can_load_local_resources); |
714 break; | 715 break; |
715 default: | 716 default: |
716 NOTREACHED(); | 717 NOTREACHED(); |
717 break; | 718 break; |
718 }; | 719 }; |
719 | 720 |
720 LoadEntry(entry); | 721 LoadEntry(entry); |
(...skipping 962 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1683 } | 1684 } |
1684 } | 1685 } |
1685 } | 1686 } |
1686 | 1687 |
1687 void NavigationControllerImpl::SetGetTimestampCallbackForTest( | 1688 void NavigationControllerImpl::SetGetTimestampCallbackForTest( |
1688 const base::Callback<base::Time()>& get_timestamp_callback) { | 1689 const base::Callback<base::Time()>& get_timestamp_callback) { |
1689 get_timestamp_callback_ = get_timestamp_callback; | 1690 get_timestamp_callback_ = get_timestamp_callback; |
1690 } | 1691 } |
1691 | 1692 |
1692 } // namespace content | 1693 } // namespace content |
OLD | NEW |