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

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

Issue 2449553002: Remove dead DocumentState metrics tracking code (Closed)
Patch Set: fix tests Created 4 years, 1 month 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 722 matching lines...) Expand 10 before | Expand all | Expand 10 after
733 current_offset_to_send = -1; 733 current_offset_to_send = -1;
734 current_length_to_send = 0; 734 current_length_to_send = 0;
735 } 735 }
736 736
737 bool user_gesture = false; 737 bool user_gesture = false;
738 #if defined(OS_ANDROID) 738 #if defined(OS_ANDROID)
739 user_gesture = has_user_gesture(); 739 user_gesture = has_user_gesture();
740 #endif 740 #endif
741 RequestNavigationParams request_params( 741 RequestNavigationParams request_params(
742 GetIsOverridingUserAgent(), redirects, GetCanLoadLocalResources(), 742 GetIsOverridingUserAgent(), redirects, GetCanLoadLocalResources(),
743 base::Time::Now(), frame_entry.page_state(), GetUniqueID(), 743 frame_entry.page_state(), GetUniqueID(), is_same_document_history_load,
744 is_same_document_history_load, is_history_navigation_in_new_child, 744 is_history_navigation_in_new_child, subframe_unique_names,
745 subframe_unique_names, has_committed_real_load, intended_as_new_entry, 745 has_committed_real_load, intended_as_new_entry, pending_offset_to_send,
746 pending_offset_to_send, current_offset_to_send, current_length_to_send, 746 current_offset_to_send, current_length_to_send, IsViewSourceMode(),
747 IsViewSourceMode(), should_clear_history_list(), user_gesture); 747 should_clear_history_list(), user_gesture);
748 #if defined(OS_ANDROID) 748 #if defined(OS_ANDROID)
749 if (GetDataURLAsString() && 749 if (GetDataURLAsString() &&
750 GetDataURLAsString()->size() <= kMaxLengthOfDataURLString) { 750 GetDataURLAsString()->size() <= kMaxLengthOfDataURLString) {
751 // The number of characters that is enough for validating a data: URI. From 751 // The number of characters that is enough for validating a data: URI. From
752 // the GURL's POV, the only important part here is scheme, it doesn't check 752 // the GURL's POV, the only important part here is scheme, it doesn't check
753 // the actual content. Thus we can take only the prefix of the url, to avoid 753 // the actual content. Thus we can take only the prefix of the url, to avoid
754 // unneeded copying of a potentially long string. 754 // unneeded copying of a potentially long string.
755 const size_t kDataUriPrefixMaxLen = 64; 755 const size_t kDataUriPrefixMaxLen = 64;
756 GURL data_url(std::string( 756 GURL data_url(std::string(
757 GetDataURLAsString()->front_as<char>(), 757 GetDataURLAsString()->front_as<char>(),
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
956 return node; 956 return node;
957 957
958 // Enqueue any children and keep looking. 958 // Enqueue any children and keep looking.
959 for (auto* child : node->children) 959 for (auto* child : node->children)
960 work_queue.push(child); 960 work_queue.push(child);
961 } 961 }
962 return nullptr; 962 return nullptr;
963 } 963 }
964 964
965 } // namespace content 965 } // namespace content
OLDNEW
« no previous file with comments | « components/test_runner/web_frame_test_proxy.h ('k') | content/browser/frame_host/navigation_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698