summaryrefslogtreecommitdiffstats
path: root/ppapi/thunk
diff options
context:
space:
mode:
authorteravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-05 15:34:21 +0000
committerteravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-05 15:34:21 +0000
commitea441832f9f20a18a465327ce7c727afc1ed5e8a (patch)
tree0c857b84708176f3e64bfdf93d611c99864dc5d6 /ppapi/thunk
parent1345f3b9e3c6ca1677aa2ffd0c915b63b040772b (diff)
downloadchromium_src-ea441832f9f20a18a465327ce7c727afc1ed5e8a.zip
chromium_src-ea441832f9f20a18a465327ce7c727afc1ed5e8a.tar.gz
chromium_src-ea441832f9f20a18a465327ce7c727afc1ed5e8a.tar.bz2
Pepper: Log in UMA when an interface is used.
We'd like to know what versions of our interfaces are used by end users. This change logs usage of PPB interfaces for out-of-process plugins the first time that get_interface<>() is called for a given interface and version. I tested this change by loading some plugin examples and checking the about:histograms page. BUG=111542 R=asvitkine@chromium.org, jschuh@chromium.org, yzshen@chromium.org Review URL: https://codereview.chromium.org/141523010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249007 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/thunk')
-rw-r--r--ppapi/thunk/interfaces_ppb_public_stable.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/ppapi/thunk/interfaces_ppb_public_stable.h b/ppapi/thunk/interfaces_ppb_public_stable.h
index afbf19b..45ce4d7 100644
--- a/ppapi/thunk/interfaces_ppb_public_stable.h
+++ b/ppapi/thunk/interfaces_ppb_public_stable.h
@@ -7,7 +7,13 @@
// This file contains lists of interfaces. It's intended to be included by
// another file which defines implementations of the macros. This allows files
// to do specific registration tasks for each supported interface.
-
+//
+// When adding an interface, you must also add the hash value for the
+// interface's name to tools/metrics/histograms/histograms.xml. This is so we
+// get human-readable UMA tracking for interface usage.
+//
+// Use the 'pepper_hash_for_uma' tool in ppapi/tools to determine the hash for
+// a given interface string.
// Api categories
// --------------