Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(637)

Unified Diff: content/browser/media/android/media_session_uma_helper.h

Issue 1698933004: Make MediaSession a runtime-enabled feature on Desktop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/media/android/media_session_uma_helper.h
diff --git a/content/browser/media/android/media_session_uma_helper.h b/content/browser/media/android/media_session_uma_helper.h
deleted file mode 100644
index 1fcf6b54b4d80e5711089c5e361ad11aaabbb8e2..0000000000000000000000000000000000000000
--- a/content/browser/media/android/media_session_uma_helper.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_SESSION_UMA_HELPER_H_
-#define CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_SESSION_UMA_HELPER_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "base/time/clock.h"
-#include "content/common/content_export.h"
-
-namespace base {
-class Clock;
-} // base namespace
-
-namespace content {
-
-class CONTENT_EXPORT MediaSessionUmaHelper {
- public:
- // This is used for UMA histogram (Media.Session.Suspended). New values should
- // be appended only and must be added before |Count|.
- enum class MediaSessionSuspendedSource {
- SystemTransient = 0,
- SystemPermanent = 1,
- UI = 2,
- CONTENT = 3,
- SystemTransientDuck = 4,
- Count // Leave at the end.
- };
-
- MediaSessionUmaHelper();
- ~MediaSessionUmaHelper();
-
- void RecordSessionSuspended(MediaSessionSuspendedSource source) const;
-
- // Record the result of calling the native requestAudioFocus().
- void RecordRequestAudioFocusResult(bool result) const;
-
- void OnSessionActive();
- void OnSessionSuspended();
- void OnSessionInactive();
-
- void SetClockForTest(scoped_ptr<base::Clock> testing_clock);
-
- private:
- base::TimeDelta total_active_time_;
- base::Time current_active_time_;
- scoped_ptr<base::Clock> clock_;
-};
-
-} // namespace content
-
-#endif // CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_SESSION_UMA_HELPER_H_
« no previous file with comments | « content/browser/media/android/media_session_observer.h ('k') | content/browser/media/android/media_session_uma_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698