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/logging.h" | 8 #include "base/logging.h" |
9 #include "base/string_number_conversions.h" // Temporary | 9 #include "base/string_number_conversions.h" // Temporary |
10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
660 entry->set_transferred_global_request_id( | 660 entry->set_transferred_global_request_id( |
661 params.transferred_global_request_id); | 661 params.transferred_global_request_id); |
662 entry->SetFrameToNavigate(params.frame_name); | 662 entry->SetFrameToNavigate(params.frame_name); |
663 | 663 |
664 switch (params.load_type) { | 664 switch (params.load_type) { |
665 case LOAD_TYPE_DEFAULT: | 665 case LOAD_TYPE_DEFAULT: |
666 break; | 666 break; |
667 case LOAD_TYPE_BROWSER_INITIATED_HTTP_POST: | 667 case LOAD_TYPE_BROWSER_INITIATED_HTTP_POST: |
668 entry->SetHasPostData(true); | 668 entry->SetHasPostData(true); |
669 entry->SetBrowserInitiatedPostData( | 669 entry->SetBrowserInitiatedPostData( |
670 params.browser_initiated_post_data); | 670 params.browser_initiated_post_data.get()); |
671 break; | 671 break; |
672 case LOAD_TYPE_DATA: | 672 case LOAD_TYPE_DATA: |
673 entry->SetBaseURLForDataURL(params.base_url_for_data_url); | 673 entry->SetBaseURLForDataURL(params.base_url_for_data_url); |
674 entry->SetVirtualURL(params.virtual_url_for_data_url); | 674 entry->SetVirtualURL(params.virtual_url_for_data_url); |
675 entry->SetCanLoadLocalResources(params.can_load_local_resources); | 675 entry->SetCanLoadLocalResources(params.can_load_local_resources); |
676 break; | 676 break; |
677 default: | 677 default: |
678 NOTREACHED(); | 678 NOTREACHED(); |
679 break; | 679 break; |
680 }; | 680 }; |
(...skipping 970 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1651 } | 1651 } |
1652 } | 1652 } |
1653 } | 1653 } |
1654 | 1654 |
1655 void NavigationControllerImpl::SetGetTimestampCallbackForTest( | 1655 void NavigationControllerImpl::SetGetTimestampCallbackForTest( |
1656 const base::Callback<base::Time()>& get_timestamp_callback) { | 1656 const base::Callback<base::Time()>& get_timestamp_callback) { |
1657 get_timestamp_callback_ = get_timestamp_callback; | 1657 get_timestamp_callback_ = get_timestamp_callback; |
1658 } | 1658 } |
1659 | 1659 |
1660 } // namespace content | 1660 } // namespace content |
OLD | NEW |