diff options
Diffstat (limited to 'chromium/ppapi/api/private/ppb_uma_private.idl')
-rw-r--r-- | chromium/ppapi/api/private/ppb_uma_private.idl | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/chromium/ppapi/api/private/ppb_uma_private.idl b/chromium/ppapi/api/private/ppb_uma_private.idl index cdb39080fa2..2d9b950fbba 100644 --- a/chromium/ppapi/api/private/ppb_uma_private.idl +++ b/chromium/ppapi/api/private/ppb_uma_private.idl @@ -6,8 +6,11 @@ /** * This file defines the <code>PPB_UMA_Private</code> interface. */ + +[generate_thunk,thunk_include="ppapi/thunk/ppb_uma_singleton_api.h"] + label Chrome { - M18 = 0.1 + M35 = 0.3 }; /** @@ -19,7 +22,9 @@ interface PPB_UMA_Private { * sample given in milliseconds in the histogram given by |name|, possibly * creating the histogram if it does not exist. */ - void HistogramCustomTimes([in] PP_Var name, + [singleton,api=PPB_UMA_Singleton_API] + void HistogramCustomTimes([in] PP_Instance instance, + [in] PP_Var name, [in] int64_t sample, [in] int64_t min, [in] int64_t max, @@ -30,7 +35,9 @@ interface PPB_UMA_Private { * in the histogram given by |name|, possibly creating the histogram if it * does not exist. */ - void HistogramCustomCounts([in] PP_Var name, + [singleton,api=PPB_UMA_Singleton_API] + void HistogramCustomCounts([in] PP_Instance instance, + [in] PP_Var name, [in] int32_t sample, [in] int32_t min, [in] int32_t max, @@ -42,7 +49,19 @@ interface PPB_UMA_Private { * does not exist. The sample represents a value in an enumeration bounded * by |boundary_value|, that is, sample < boundary_value always. */ - void HistogramEnumeration([in] PP_Var name, + [singleton,api=PPB_UMA_Singleton_API] + void HistogramEnumeration([in] PP_Instance instance, + [in] PP_Var name, [in] int32_t sample, [in] int32_t boundary_value); + + /** + * IsCrashReportingEnabled returns PP_OK to the completion callback to + * indicate that the current user has opted-in to crash reporting, or + * PP_ERROR_* on failure or when a user has not opted-in. This can be used to + * gate other reporting processes such as analytics and crash reporting. + */ + [singleton,api=PPB_UMA_Singleton_API] + int32_t IsCrashReportingEnabled([in] PP_Instance instance, + [in] PP_CompletionCallback callback); }; |