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

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

Issue 1390053002: Trace FrameTreeNode Snapshots (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: non-copied FrameTree Created 5 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/navigator_impl.h" 5 #include "content/browser/frame_host/navigator_impl.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "content/browser/frame_host/frame_tree.h" 10 #include "content/browser/frame_host/frame_tree.h"
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 params.url, 487 params.url,
488 transition_type); 488 transition_type);
489 render_frame_host->navigation_handle()->DidCommitNavigation( 489 render_frame_host->navigation_handle()->DidCommitNavigation(
490 is_navigation_within_page, render_frame_host); 490 is_navigation_within_page, render_frame_host);
491 render_frame_host->SetNavigationHandle(nullptr); 491 render_frame_host->SetNavigationHandle(nullptr);
492 } 492 }
493 493
494 if (!did_navigate) 494 if (!did_navigate)
495 return; // No navigation happened. 495 return; // No navigation happened.
496 496
497 render_frame_host->frame_tree_node()->frame_tree()->TraceSnapshot();
clamy 2015/10/26 14:45:13 I think this should move to RenderFrameHostManager
nasko 2015/10/26 15:59:23 I would rather not trace in RFHM's method that all
498
497 // DO NOT ADD MORE STUFF TO THIS FUNCTION! Your component should either listen 499 // DO NOT ADD MORE STUFF TO THIS FUNCTION! Your component should either listen
498 // for the appropriate notification (best) or you can add it to 500 // for the appropriate notification (best) or you can add it to
499 // DidNavigateMainFramePostCommit / DidNavigateAnyFramePostCommit (only if 501 // DidNavigateMainFramePostCommit / DidNavigateAnyFramePostCommit (only if
500 // necessary, please). 502 // necessary, please).
501 503
502 // TODO(carlosk): Move this out when PlzNavigate implementation properly calls 504 // TODO(carlosk): Move this out when PlzNavigate implementation properly calls
503 // the observer methods. 505 // the observer methods.
504 RecordNavigationMetrics(details, params, site_instance); 506 RecordNavigationMetrics(details, params, site_instance);
505 507
506 // Run post-commit tasks. 508 // Run post-commit tasks.
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
946 entry->set_should_replace_entry(pending_entry->should_replace_entry()); 948 entry->set_should_replace_entry(pending_entry->should_replace_entry());
947 entry->SetRedirectChain(pending_entry->GetRedirectChain()); 949 entry->SetRedirectChain(pending_entry->GetRedirectChain());
948 } 950 }
949 controller_->SetPendingEntry(entry.Pass()); 951 controller_->SetPendingEntry(entry.Pass());
950 if (delegate_) 952 if (delegate_)
951 delegate_->NotifyChangedNavigationState(content::INVALIDATE_TYPE_URL); 953 delegate_->NotifyChangedNavigationState(content::INVALIDATE_TYPE_URL);
952 } 954 }
953 } 955 }
954 956
955 } // namespace content 957 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698