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 <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 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 base::TimeTicks ui_timestamp = base::TimeTicks(); | 447 base::TimeTicks ui_timestamp = base::TimeTicks(); |
448 #if defined(OS_ANDROID) | 448 #if defined(OS_ANDROID) |
449 if (!intent_received_timestamp().is_null()) | 449 if (!intent_received_timestamp().is_null()) |
450 report_type = FrameMsg_UILoadMetricsReportType::REPORT_INTENT; | 450 report_type = FrameMsg_UILoadMetricsReportType::REPORT_INTENT; |
451 ui_timestamp = intent_received_timestamp(); | 451 ui_timestamp = intent_received_timestamp(); |
452 #endif | 452 #endif |
453 | 453 |
454 return CommonNavigationParams( | 454 return CommonNavigationParams( |
455 dest_url, dest_referrer, GetTransitionType(), navigation_type, | 455 dest_url, dest_referrer, GetTransitionType(), navigation_type, |
456 !IsViewSourceMode(), should_replace_entry(), ui_timestamp, report_type, | 456 !IsViewSourceMode(), should_replace_entry(), ui_timestamp, report_type, |
457 GetBaseURLForDataURL(), GetHistoryURLForDataURL()); | 457 GetBaseURLForDataURL(), GetHistoryURLForDataURL(), LOFI_UNSPECIFIED); |
458 } | 458 } |
459 | 459 |
460 StartNavigationParams NavigationEntryImpl::ConstructStartNavigationParams() | 460 StartNavigationParams NavigationEntryImpl::ConstructStartNavigationParams() |
461 const { | 461 const { |
462 std::vector<unsigned char> browser_initiated_post_data; | 462 std::vector<unsigned char> browser_initiated_post_data; |
463 if (GetBrowserInitiatedPostData()) { | 463 if (GetBrowserInitiatedPostData()) { |
464 browser_initiated_post_data.assign( | 464 browser_initiated_post_data.assign( |
465 GetBrowserInitiatedPostData()->front(), | 465 GetBrowserInitiatedPostData()->front(), |
466 GetBrowserInitiatedPostData()->front() + | 466 GetBrowserInitiatedPostData()->front() + |
467 GetBrowserInitiatedPostData()->size()); | 467 GetBrowserInitiatedPostData()->size()); |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
606 return node; | 606 return node; |
607 } | 607 } |
608 // Enqueue any children and keep looking. | 608 // Enqueue any children and keep looking. |
609 for (auto& child : node->children) | 609 for (auto& child : node->children) |
610 work_queue.push(child); | 610 work_queue.push(child); |
611 } | 611 } |
612 return nullptr; | 612 return nullptr; |
613 } | 613 } |
614 | 614 |
615 } // namespace content | 615 } // namespace content |
OLD | NEW |