Chromium Code Reviews| 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_entry_impl.h" | 5 #include "content/browser/frame_host/navigation_entry_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <queue> | 9 #include <queue> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 682 // subframe navigation entries. | 682 // subframe navigation entries. |
| 683 if (IsBrowserSideNavigationEnabled()) | 683 if (IsBrowserSideNavigationEnabled()) |
| 684 method = frame_entry.method(); | 684 method = frame_entry.method(); |
| 685 else | 685 else |
| 686 method = (post_body.get() || GetHasPostData()) ? "POST" : "GET"; | 686 method = (post_body.get() || GetHasPostData()) ? "POST" : "GET"; |
| 687 | 687 |
| 688 return CommonNavigationParams( | 688 return CommonNavigationParams( |
| 689 dest_url, dest_referrer, GetTransitionType(), navigation_type, | 689 dest_url, dest_referrer, GetTransitionType(), navigation_type, |
| 690 !IsViewSourceMode(), should_replace_entry(), ui_timestamp, report_type, | 690 !IsViewSourceMode(), should_replace_entry(), ui_timestamp, report_type, |
| 691 GetBaseURLForDataURL(), GetHistoryURLForDataURL(), lofi_state, | 691 GetBaseURLForDataURL(), GetHistoryURLForDataURL(), lofi_state, |
| 692 navigation_start, method, post_body ? post_body : post_data_); | 692 navigation_start, method, false, post_body ? post_body : post_data_); |
|
clamy
2016/10/13 12:56:17
Does the stripping of password data from the post_
ananta
2016/10/13 20:16:43
Thanks for pointing out the issue with OpenURL. As
| |
| 693 } | 693 } |
| 694 | 694 |
| 695 StartNavigationParams NavigationEntryImpl::ConstructStartNavigationParams() | 695 StartNavigationParams NavigationEntryImpl::ConstructStartNavigationParams() |
| 696 const { | 696 const { |
| 697 return StartNavigationParams(extra_headers(), | 697 return StartNavigationParams(extra_headers(), |
| 698 transferred_global_request_id().child_id, | 698 transferred_global_request_id().child_id, |
| 699 transferred_global_request_id().request_id); | 699 transferred_global_request_id().request_id); |
| 700 } | 700 } |
| 701 | 701 |
| 702 RequestNavigationParams NavigationEntryImpl::ConstructRequestNavigationParams( | 702 RequestNavigationParams NavigationEntryImpl::ConstructRequestNavigationParams( |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 938 return node; | 938 return node; |
| 939 | 939 |
| 940 // Enqueue any children and keep looking. | 940 // Enqueue any children and keep looking. |
| 941 for (auto* child : node->children) | 941 for (auto* child : node->children) |
| 942 work_queue.push(child); | 942 work_queue.push(child); |
| 943 } | 943 } |
| 944 return nullptr; | 944 return nullptr; |
| 945 } | 945 } |
| 946 | 946 |
| 947 } // namespace content | 947 } // namespace content |
| OLD | NEW |