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

Unified Diff: media/base/key_systems_support_uma.h

Issue 1712903002: Remove prefixed EME. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix isRenewalMessage() in browser tests. Created 4 years, 10 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
« no previous file with comments | « media/base/key_systems.cc ('k') | media/base/key_systems_support_uma.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/key_systems_support_uma.h
diff --git a/media/base/key_systems_support_uma.h b/media/base/key_systems_support_uma.h
deleted file mode 100644
index 28f334db9955e5555259f3cdbc42fa60dd08a846..0000000000000000000000000000000000000000
--- a/media/base/key_systems_support_uma.h
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright 2013 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 MEDIA_BASE_KEY_SYSTEMS_SUPPORT_UMA_H_
-#define MEDIA_BASE_KEY_SYSTEMS_SUPPORT_UMA_H_
-
-#include <string>
-
-#include "base/containers/scoped_ptr_hash_map.h"
-
-namespace media {
-
-// Key system support UMA statistics for queried key systems.
-// 1. The key system is queried (with or without a MIME type).
-// 2. The key system is queried with a MIME type.
-// 3. The queried key system is supported (with or without a MIME type). This is
-// reported when the key system is supported when queried, regardless of
-// whether a MIME type is specified.
-// 4. The queried key system is supported with a MIME type. This is reported
-// when the key system is supported when queried without a MIME type
-// specified.
-// Note: All 4 stats are only reported once per renderer process per key system.
-class KeySystemsSupportUMA {
- public:
- KeySystemsSupportUMA();
- ~KeySystemsSupportUMA();
-
- // Adds a |key_system| for which query/support statistics are reported.
- // If you use this function to add key system to report, make sure to update
- // AddKeySystemSupportActions() in tools/metrics/actions/extract_actions.py.
- void AddKeySystemToReport(const std::string& key_system);
-
- // Reports that the |key_system| is queried. When |has_type|, also reports
- // that the |key_system| with a MIME type is queried.
- void ReportKeySystemQuery(const std::string& key_system, bool has_type);
-
- // Reports that the queried |key_system| is supported. When |has_type| (a
- // a MIME type is specified in the query), also reports that the queried
- // |key_system| is supported with that MIME type.
- void ReportKeySystemSupport(const std::string& key_system, bool has_type);
-
- private:
- class Reporter;
-
- // Returns the Reporter for |key_system|. Returns NULL if |key_system| was not
- // added for UMA reporting.
- Reporter* GetReporter(const std::string& key_system);
-
- // Key system <-> Reporter map.
- typedef base::ScopedPtrHashMap<std::string, scoped_ptr<Reporter>> Reporters;
- Reporters reporters_;
-};
-
-} // namespace media
-
-#endif // MEDIA_BASE_KEY_SYSTEMS_SUPPORT_UMA_H_
« no previous file with comments | « media/base/key_systems.cc ('k') | media/base/key_systems_support_uma.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698