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 650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
661 entry->SetIsOverridingUserAgent(override); | 661 entry->SetIsOverridingUserAgent(override); |
662 entry->set_transferred_global_request_id( | 662 entry->set_transferred_global_request_id( |
663 params.transferred_global_request_id); | 663 params.transferred_global_request_id); |
664 | 664 |
665 switch (params.load_type) { | 665 switch (params.load_type) { |
666 case LOAD_TYPE_DEFAULT: | 666 case LOAD_TYPE_DEFAULT: |
667 break; | 667 break; |
668 case LOAD_TYPE_BROWSER_INITIATED_HTTP_POST: | 668 case LOAD_TYPE_BROWSER_INITIATED_HTTP_POST: |
669 entry->SetHasPostData(true); | 669 entry->SetHasPostData(true); |
670 entry->SetBrowserInitiatedPostData( | 670 entry->SetBrowserInitiatedPostData( |
671 params.browser_initiated_post_data); | 671 params.browser_initiated_post_data.get()); |
672 break; | 672 break; |
673 case LOAD_TYPE_DATA: | 673 case LOAD_TYPE_DATA: |
674 entry->SetBaseURLForDataURL(params.base_url_for_data_url); | 674 entry->SetBaseURLForDataURL(params.base_url_for_data_url); |
675 entry->SetVirtualURL(params.virtual_url_for_data_url); | 675 entry->SetVirtualURL(params.virtual_url_for_data_url); |
676 entry->SetCanLoadLocalResources(params.can_load_local_resources); | 676 entry->SetCanLoadLocalResources(params.can_load_local_resources); |
677 break; | 677 break; |
678 default: | 678 default: |
679 NOTREACHED(); | 679 NOTREACHED(); |
680 break; | 680 break; |
681 }; | 681 }; |
(...skipping 927 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1609 } | 1609 } |
1610 } | 1610 } |
1611 } | 1611 } |
1612 | 1612 |
1613 void NavigationControllerImpl::SetGetTimestampCallbackForTest( | 1613 void NavigationControllerImpl::SetGetTimestampCallbackForTest( |
1614 const base::Callback<base::Time()>& get_timestamp_callback) { | 1614 const base::Callback<base::Time()>& get_timestamp_callback) { |
1615 get_timestamp_callback_ = get_timestamp_callback; | 1615 get_timestamp_callback_ = get_timestamp_callback; |
1616 } | 1616 } |
1617 | 1617 |
1618 } // namespace content | 1618 } // namespace content |
OLD | NEW |