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

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

Issue 1182453002: PlzNavigate: support for should_replace_current_entry (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 <queue> 7 #include <queue>
8 8
9 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 base::TimeTicks ui_timestamp = base::TimeTicks(); 401 base::TimeTicks ui_timestamp = base::TimeTicks();
402 #if defined(OS_ANDROID) 402 #if defined(OS_ANDROID)
403 if (!intent_received_timestamp().is_null()) 403 if (!intent_received_timestamp().is_null())
404 report_type = FrameMsg_UILoadMetricsReportType::REPORT_INTENT; 404 report_type = FrameMsg_UILoadMetricsReportType::REPORT_INTENT;
405 ui_timestamp = intent_received_timestamp(); 405 ui_timestamp = intent_received_timestamp();
406 #endif 406 #endif
407 407
408 return CommonNavigationParams( 408 return CommonNavigationParams(
409 GetURL(), GetReferrer(), GetTransitionType(), navigation_type, 409 GetURL(), GetReferrer(), GetTransitionType(), navigation_type,
410 !IsViewSourceMode(), ui_timestamp, report_type, GetBaseURLForDataURL(), 410 !IsViewSourceMode(), ui_timestamp, report_type, GetBaseURLForDataURL(),
411 GetHistoryURLForDataURL()); 411 GetHistoryURLForDataURL(), false);
412 } 412 }
413 413
414 StartNavigationParams NavigationEntryImpl::ConstructStartNavigationParams() 414 StartNavigationParams NavigationEntryImpl::ConstructStartNavigationParams()
415 const { 415 const {
416 std::vector<unsigned char> browser_initiated_post_data; 416 std::vector<unsigned char> browser_initiated_post_data;
417 if (GetBrowserInitiatedPostData()) { 417 if (GetBrowserInitiatedPostData()) {
418 browser_initiated_post_data.assign( 418 browser_initiated_post_data.assign(
419 GetBrowserInitiatedPostData()->front(), 419 GetBrowserInitiatedPostData()->front(),
420 GetBrowserInitiatedPostData()->front() + 420 GetBrowserInitiatedPostData()->front() +
421 GetBrowserInitiatedPostData()->size()); 421 GetBrowserInitiatedPostData()->size());
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 return node; 551 return node;
552 } 552 }
553 // Enqueue any children and keep looking. 553 // Enqueue any children and keep looking.
554 for (auto& child : node->children) 554 for (auto& child : node->children)
555 work_queue.push(child); 555 work_queue.push(child);
556 } 556 }
557 return nullptr; 557 return nullptr;
558 } 558 }
559 559
560 } // namespace content 560 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/frame_host/render_frame_host_impl.cc » ('j') | content/common/navigation_params.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698