diff options
author | teravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-16 14:22:19 +0000 |
---|---|---|
committer | teravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-16 14:22:19 +0000 |
commit | 55cd5b803430afdc255356bbaef6575230242298 (patch) | |
tree | e6f903ce12685eeeb11cbf078a5ca2dc009a7c2b /ppapi/c/private | |
parent | b6f29dc035f5b31524db93683babf9366275626e (diff) | |
download | chromium_src-55cd5b803430afdc255356bbaef6575230242298.zip chromium_src-55cd5b803430afdc255356bbaef6575230242298.tar.gz chromium_src-55cd5b803430afdc255356bbaef6575230242298.tar.bz2 |
Pepper: Move more UMA stuff out of trusted plugin.
This is yet another pretty simple change just lifting more lines out of the
trusted plugin. I added a method to PPB_NaCl_Private that's safe to call from
a background thread (there are other methods that are safe as well) to keep the
call sites simple.
BUG=239656
R=dmichael@chromium.org
Review URL: https://codereview.chromium.org/331973002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@277424 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/c/private')
-rw-r--r-- | ppapi/c/private/ppb_nacl_private.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ppapi/c/private/ppb_nacl_private.h b/ppapi/c/private/ppb_nacl_private.h index c695012..9df8723 100644 --- a/ppapi/c/private/ppb_nacl_private.h +++ b/ppapi/c/private/ppb_nacl_private.h @@ -3,7 +3,7 @@ * found in the LICENSE file. */ -/* From private/ppb_nacl_private.idl modified Fri Jun 6 10:38:50 2014. */ +/* From private/ppb_nacl_private.idl modified Fri Jun 13 15:14:51 2014. */ #ifndef PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ #define PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ @@ -445,6 +445,10 @@ struct PPB_NaCl_Private_1_0 { void (*ReportSelLdrStatus)(PP_Instance instance, int32_t load_status, int32_t max_status); + /* Logs time taken by an operation to UMA histograms. + * This function is safe to call on any thread. + */ + void (*LogTranslateTime)(const char* histogram_name, int64_t time_us); }; typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; |