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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
497 } | 497 } |
498 return parent_->child_at(i + relative_offset); | 498 return parent_->child_at(i + relative_offset); |
499 } | 499 } |
500 } | 500 } |
501 | 501 |
502 NOTREACHED() << "FrameTreeNode not found in its parent's children."; | 502 NOTREACHED() << "FrameTreeNode not found in its parent's children."; |
503 return nullptr; | 503 return nullptr; |
504 } | 504 } |
505 | 505 |
506 } // namespace content | 506 } // namespace content |
OLD | NEW |