1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file.
6 /* From private/ppb_uma_private.idl modified Tue Oct 2 13:17:06 2012. */
8 #ifndef PPAPI_C_PRIVATE_PPB_UMA_PRIVATE_H_
9 #define PPAPI_C_PRIVATE_PPB_UMA_PRIVATE_H_
11 #include "ppapi/c/pp_bool.h"
12 #include "ppapi/c/pp_macros.h"
13 #include "ppapi/c/pp_stdint.h"
14 #include "ppapi/c/pp_var.h"
16 #define PPB_UMA_PRIVATE_INTERFACE_0_1 "PPB_UMA_Private;0.1"
17 #define PPB_UMA_PRIVATE_INTERFACE PPB_UMA_PRIVATE_INTERFACE_0_1
21 * This file defines the <code>PPB_UMA_Private</code> interface.
26 * @addtogroup Interfaces
30 * Contains functions for plugins to report UMA usage stats.
32 struct PPB_UMA_Private_0_1
{
34 * HistogramCustomTimes is a pointer to a function which records a time
35 * sample given in milliseconds in the histogram given by |name|, possibly
36 * creating the histogram if it does not exist.
38 void (*HistogramCustomTimes
)(struct PP_Var name
,
42 uint32_t bucket_count
);
44 * HistogramCustomCounts is a pointer to a function which records a sample
45 * in the histogram given by |name|, possibly creating the histogram if it
48 void (*HistogramCustomCounts
)(struct PP_Var name
,
52 uint32_t bucket_count
);
54 * HistogramEnumeration is a pointer to a function which records a sample
55 * in the histogram given by |name|, possibly creating the histogram if it
56 * does not exist. The sample represents a value in an enumeration bounded
57 * by |boundary_value|, that is, sample < boundary_value always.
59 void (*HistogramEnumeration
)(struct PP_Var name
,
61 int32_t boundary_value
);
64 typedef struct PPB_UMA_Private_0_1 PPB_UMA_Private
;
69 #endif /* PPAPI_C_PRIVATE_PPB_UMA_PRIVATE_H_ */