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

Unified Diff: content/renderer/media/cdm_session_adapter.h

Issue 452643002: Add UMA reporting to CdmPromise. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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/renderer/media/cdm_session_adapter.h
diff --git a/content/renderer/media/cdm_session_adapter.h b/content/renderer/media/cdm_session_adapter.h
index 35e060beba1cb03e81fbe327ee0fe9d4b96ae0f7..1d8d272f02946da78a777ac6bd9fdf6bd9a72b3a 100644
--- a/content/renderer/media/cdm_session_adapter.h
+++ b/content/renderer/media/cdm_session_adapter.h
@@ -88,6 +88,9 @@ class CdmSessionAdapter : public base::RefCounted<CdmSessionAdapter> {
// after WebContentDecryptionModule is freed. http://crbug.com/330324
media::Decryptor* GetDecryptor();
+ // Returns a prefix to use for UMAs.
+ const std::string& GetKeySystemUMAPrefix();
ddorwin 2014/08/08 03:35:40 ... const;
sandersd (OOO until July 31) 2014/08/08 17:22:24 Done.
+
#if defined(ENABLE_BROWSER_CDMS)
// Returns the CDM ID associated with the |media_keys_|. May be kInvalidCdmId
// if no CDM ID is associated.
@@ -125,6 +128,8 @@ class CdmSessionAdapter : public base::RefCounted<CdmSessionAdapter> {
int cdm_id_;
#endif
+ std::string key_system_uma_prefix_;
+
// NOTE: Weak pointers must be invalidated before all other member variables.
base::WeakPtrFactory<CdmSessionAdapter> weak_ptr_factory_;
« no previous file with comments | « no previous file | content/renderer/media/cdm_session_adapter.cc » ('j') | content/renderer/media/cdm_session_adapter.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698