Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(498)

Side by Side Diff: content/browser/frame_host/navigation_entry_impl.cc

Issue 2720763002: PlzNavigate: preserve SourceLocation when navigating (Closed)
Patch Set: Addressed nate's comments Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
678 // subframe navigation entries. 678 // subframe navigation entries.
679 if (IsBrowserSideNavigationEnabled()) 679 if (IsBrowserSideNavigationEnabled())
680 method = frame_entry.method(); 680 method = frame_entry.method();
681 else 681 else
682 method = (post_body.get() || GetHasPostData()) ? "POST" : "GET"; 682 method = (post_body.get() || GetHasPostData()) ? "POST" : "GET";
683 683
684 return CommonNavigationParams( 684 return CommonNavigationParams(
685 dest_url, dest_referrer, GetTransitionType(), navigation_type, 685 dest_url, dest_referrer, GetTransitionType(), navigation_type,
686 !IsViewSourceMode(), should_replace_entry(), ui_timestamp, report_type, 686 !IsViewSourceMode(), should_replace_entry(), ui_timestamp, report_type,
687 GetBaseURLForDataURL(), GetHistoryURLForDataURL(), previews_state, 687 GetBaseURLForDataURL(), GetHistoryURLForDataURL(), previews_state,
688 navigation_start, method, post_body ? post_body : post_data_); 688 navigation_start, method, post_body ? post_body : post_data_,
689 base::Optional<SourceLocation>());
689 } 690 }
690 691
691 StartNavigationParams NavigationEntryImpl::ConstructStartNavigationParams() 692 StartNavigationParams NavigationEntryImpl::ConstructStartNavigationParams()
692 const { 693 const {
693 return StartNavigationParams(extra_headers(), 694 return StartNavigationParams(extra_headers(),
694 transferred_global_request_id().child_id, 695 transferred_global_request_id().child_id,
695 transferred_global_request_id().request_id); 696 transferred_global_request_id().request_id);
696 } 697 }
697 698
698 RequestNavigationParams NavigationEntryImpl::ConstructRequestNavigationParams( 699 RequestNavigationParams NavigationEntryImpl::ConstructRequestNavigationParams(
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
947 return node; 948 return node;
948 949
949 // Enqueue any children and keep looking. 950 // Enqueue any children and keep looking.
950 for (auto* child : node->children) 951 for (auto* child : node->children)
951 work_queue.push(child); 952 work_queue.push(child);
952 } 953 }
953 return nullptr; 954 return nullptr;
954 } 955 }
955 956
956 } // namespace content 957 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/frame_host/navigation_request.cc » ('j') | content/browser/frame_host/navigation_request.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698