| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/page_load_tracker.h" | 5 #include "chrome/browser/page_load_metrics/page_load_tracker.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> |
| 11 | 11 |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/memory/ptr_util.h" | 13 #include "base/memory/ptr_util.h" |
| 14 #include "base/metrics/histogram_macros.h" | 14 #include "base/metrics/histogram_macros.h" |
| 15 #include "base/metrics/user_metrics.h" | |
| 16 #include "chrome/browser/page_load_metrics/page_load_metrics_embedder_interface.
h" | 15 #include "chrome/browser/page_load_metrics/page_load_metrics_embedder_interface.
h" |
| 17 #include "chrome/browser/page_load_metrics/page_load_metrics_util.h" | 16 #include "chrome/browser/page_load_metrics/page_load_metrics_util.h" |
| 18 #include "chrome/common/page_load_metrics/page_load_timing.h" | 17 #include "chrome/common/page_load_metrics/page_load_timing.h" |
| 19 #include "content/public/browser/navigation_details.h" | 18 #include "content/public/browser/navigation_details.h" |
| 20 #include "content/public/browser/navigation_handle.h" | 19 #include "content/public/browser/navigation_handle.h" |
| 21 #include "content/public/browser/web_contents.h" | 20 #include "content/public/browser/web_contents.h" |
| 22 #include "content/public/browser/web_contents_observer.h" | 21 #include "content/public/browser/web_contents_observer.h" |
| 23 #include "content/public/common/browser_side_navigation_policy.h" | 22 #include "content/public/common/browser_side_navigation_policy.h" |
| 24 #include "ui/base/page_transition_types.h" | 23 #include "ui/base/page_transition_types.h" |
| 25 | 24 |
| (...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 734 } | 733 } |
| 735 | 734 |
| 736 void PageLoadTracker::MediaStartedPlaying( | 735 void PageLoadTracker::MediaStartedPlaying( |
| 737 const content::WebContentsObserver::MediaPlayerInfo& video_type, | 736 const content::WebContentsObserver::MediaPlayerInfo& video_type, |
| 738 bool is_in_main_frame) { | 737 bool is_in_main_frame) { |
| 739 for (const auto& observer : observers_) | 738 for (const auto& observer : observers_) |
| 740 observer->MediaStartedPlaying(video_type, is_in_main_frame); | 739 observer->MediaStartedPlaying(video_type, is_in_main_frame); |
| 741 } | 740 } |
| 742 | 741 |
| 743 } // namespace page_load_metrics | 742 } // namespace page_load_metrics |
| OLD | NEW |