| 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 "core/html/media/AutoplayUmaHelper.h" | 5 #include "core/html/media/AutoplayUmaHelper.h" |
| 6 | 6 |
| 7 #include "core/dom/Document.h" | 7 #include "core/dom/Document.h" |
| 8 #include "core/dom/ElementVisibilityObserver.h" | 8 #include "core/dom/ElementVisibilityObserver.h" |
| 9 #include "core/events/Event.h" | 9 #include "core/events/Event.h" |
| 10 #include "core/frame/Settings.h" | 10 #include "core/frame/Settings.h" |
| 11 #include "core/html/HTMLMediaElement.h" | 11 #include "core/html/HTMLMediaElement.h" |
| 12 #include "platform/Histogram.h" | 12 #include "platform/Histogram.h" |
| 13 #include "platform/wtf/CurrentTime.h" |
| 13 #include "public/platform/Platform.h" | 14 #include "public/platform/Platform.h" |
| 14 #include "wtf/CurrentTime.h" | |
| 15 | 15 |
| 16 namespace blink { | 16 namespace blink { |
| 17 | 17 |
| 18 namespace { | 18 namespace { |
| 19 | 19 |
| 20 const int32_t kMaxOffscreenDurationUmaMS = 60 * 60 * 1000; | 20 const int32_t kMaxOffscreenDurationUmaMS = 60 * 60 * 1000; |
| 21 const int32_t kOffscreenDurationUmaBucketCount = 50; | 21 const int32_t kOffscreenDurationUmaBucketCount = 50; |
| 22 | 22 |
| 23 } // namespace | 23 } // namespace |
| 24 | 24 |
| (...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 | 389 |
| 390 DEFINE_TRACE(AutoplayUmaHelper) { | 390 DEFINE_TRACE(AutoplayUmaHelper) { |
| 391 EventListener::Trace(visitor); | 391 EventListener::Trace(visitor); |
| 392 ContextLifecycleObserver::Trace(visitor); | 392 ContextLifecycleObserver::Trace(visitor); |
| 393 visitor->Trace(element_); | 393 visitor->Trace(element_); |
| 394 visitor->Trace(muted_video_play_method_visibility_observer_); | 394 visitor->Trace(muted_video_play_method_visibility_observer_); |
| 395 visitor->Trace(muted_video_offscreen_duration_visibility_observer_); | 395 visitor->Trace(muted_video_offscreen_duration_visibility_observer_); |
| 396 } | 396 } |
| 397 | 397 |
| 398 } // namespace blink | 398 } // namespace blink |
| OLD | NEW |