OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "chrome/browser/page_load_metrics/metrics_web_contents_observer.h" | 5 #include "chrome/browser/page_load_metrics/metrics_web_contents_observer.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <ostream> | 8 #include <ostream> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
658 if (observer_) { | 658 if (observer_) { |
659 observer_->RemoveTestingObserver(this); | 659 observer_->RemoveTestingObserver(this); |
660 observer_ = nullptr; | 660 observer_ = nullptr; |
661 } | 661 } |
662 } | 662 } |
663 | 663 |
664 void MetricsWebContentsObserver::TestingObserver::OnGoingAway() { | 664 void MetricsWebContentsObserver::TestingObserver::OnGoingAway() { |
665 observer_ = nullptr; | 665 observer_ = nullptr; |
666 } | 666 } |
667 | 667 |
| 668 void MetricsWebContentsObserver::BroadcastEventToObservers( |
| 669 const void* const event_key) { |
| 670 if (committed_load_) |
| 671 committed_load_->BroadcastEventToObservers(event_key); |
| 672 } |
| 673 |
668 } // namespace page_load_metrics | 674 } // namespace page_load_metrics |
OLD | NEW |