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/frame_tree_node.h" | 5 #include "content/browser/frame_host/frame_tree_node.h" |
6 | 6 |
7 #include <queue> | 7 #include <queue> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 render_manager()->OnDidStopLoading(); | 434 render_manager()->OnDidStopLoading(); |
435 | 435 |
436 // TODO(erikchen): Remove ScopedTracker below once crbug.com/465796 is fixed. | 436 // TODO(erikchen): Remove ScopedTracker below once crbug.com/465796 is fixed. |
437 tracked_objects::ScopedTracker tracking_profile4( | 437 tracked_objects::ScopedTracker tracking_profile4( |
438 FROM_HERE_WITH_EXPLICIT_FUNCTION( | 438 FROM_HERE_WITH_EXPLICIT_FUNCTION( |
439 "465796 FrameTreeNode::DidStopLoading::End")); | 439 "465796 FrameTreeNode::DidStopLoading::End")); |
440 } | 440 } |
441 | 441 |
442 void FrameTreeNode::DidChangeLoadProgress(double load_progress) { | 442 void FrameTreeNode::DidChangeLoadProgress(double load_progress) { |
443 loading_progress_ = load_progress; | 443 loading_progress_ = load_progress; |
444 frame_tree_->UpdateLoadProgress(); | 444 frame_tree_->UpdateLoadProgress(this); |
445 } | 445 } |
446 | 446 |
447 bool FrameTreeNode::StopLoading() { | 447 bool FrameTreeNode::StopLoading() { |
448 if (IsBrowserSideNavigationEnabled()) | 448 if (IsBrowserSideNavigationEnabled()) |
449 ResetNavigationRequest(false); | 449 ResetNavigationRequest(false); |
450 | 450 |
451 // TODO(nasko): see if child frames should send IPCs in site-per-process | 451 // TODO(nasko): see if child frames should send IPCs in site-per-process |
452 // mode. | 452 // mode. |
453 if (!IsMainFrame()) | 453 if (!IsMainFrame()) |
454 return true; | 454 return true; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
488 void FrameTreeNode::TraceSnapshot() const { | 488 void FrameTreeNode::TraceSnapshot() const { |
489 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 489 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
490 TRACE_EVENT_OBJECT_SNAPSHOT_WITH_ID( | 490 TRACE_EVENT_OBJECT_SNAPSHOT_WITH_ID( |
491 "navigation", "FrameTreeNode", | 491 "navigation", "FrameTreeNode", |
492 TRACE_ID_WITH_SCOPE("FrameTreeNode", frame_tree_node_id_), | 492 TRACE_ID_WITH_SCOPE("FrameTreeNode", frame_tree_node_id_), |
493 std::unique_ptr<base::trace_event::ConvertableToTraceFormat>( | 493 std::unique_ptr<base::trace_event::ConvertableToTraceFormat>( |
494 new TracedFrameTreeNode(*this))); | 494 new TracedFrameTreeNode(*this))); |
495 } | 495 } |
496 | 496 |
497 } // namespace content | 497 } // namespace content |
OLD | NEW |