OLD | NEW |
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
4 */ | 4 */ |
5 | 5 |
6 /* From private/ppb_uma_private.idl modified Tue Oct 2 13:17:06 2012. */ | 6 /* From private/ppb_uma_private.idl modified Mon Nov 18 14:39:43 2013. */ |
7 | 7 |
8 #ifndef PPAPI_C_PRIVATE_PPB_UMA_PRIVATE_H_ | 8 #ifndef PPAPI_C_PRIVATE_PPB_UMA_PRIVATE_H_ |
9 #define PPAPI_C_PRIVATE_PPB_UMA_PRIVATE_H_ | 9 #define PPAPI_C_PRIVATE_PPB_UMA_PRIVATE_H_ |
10 | 10 |
11 #include "ppapi/c/pp_bool.h" | 11 #include "ppapi/c/pp_bool.h" |
| 12 #include "ppapi/c/pp_instance.h" |
12 #include "ppapi/c/pp_macros.h" | 13 #include "ppapi/c/pp_macros.h" |
13 #include "ppapi/c/pp_stdint.h" | 14 #include "ppapi/c/pp_stdint.h" |
14 #include "ppapi/c/pp_var.h" | 15 #include "ppapi/c/pp_var.h" |
15 | 16 |
16 #define PPB_UMA_PRIVATE_INTERFACE_0_1 "PPB_UMA_Private;0.1" | 17 #define PPB_UMA_PRIVATE_INTERFACE_0_2 "PPB_UMA_Private;0.2" |
17 #define PPB_UMA_PRIVATE_INTERFACE PPB_UMA_PRIVATE_INTERFACE_0_1 | 18 #define PPB_UMA_PRIVATE_INTERFACE PPB_UMA_PRIVATE_INTERFACE_0_2 |
18 | 19 |
19 /** | 20 /** |
20 * @file | 21 * @file |
21 * This file defines the <code>PPB_UMA_Private</code> interface. | 22 * This file defines the <code>PPB_UMA_Private</code> interface. |
22 */ | 23 */ |
23 | 24 |
24 | 25 |
25 /** | 26 /** |
26 * @addtogroup Interfaces | 27 * @addtogroup Interfaces |
27 * @{ | 28 * @{ |
28 */ | 29 */ |
29 /** | 30 /** |
30 * Contains functions for plugins to report UMA usage stats. | 31 * Contains functions for plugins to report UMA usage stats. |
31 */ | 32 */ |
32 struct PPB_UMA_Private_0_1 { | 33 struct PPB_UMA_Private_0_2 { |
33 /** | 34 /** |
34 * HistogramCustomTimes is a pointer to a function which records a time | 35 * HistogramCustomTimes is a pointer to a function which records a time |
35 * sample given in milliseconds in the histogram given by |name|, possibly | 36 * sample given in milliseconds in the histogram given by |name|, possibly |
36 * creating the histogram if it does not exist. | 37 * creating the histogram if it does not exist. |
37 */ | 38 */ |
38 void (*HistogramCustomTimes)(struct PP_Var name, | 39 void (*HistogramCustomTimes)(PP_Instance instance, |
| 40 struct PP_Var name, |
39 int64_t sample, | 41 int64_t sample, |
40 int64_t min, | 42 int64_t min, |
41 int64_t max, | 43 int64_t max, |
42 uint32_t bucket_count); | 44 uint32_t bucket_count); |
43 /** | 45 /** |
44 * HistogramCustomCounts is a pointer to a function which records a sample | 46 * HistogramCustomCounts is a pointer to a function which records a sample |
45 * in the histogram given by |name|, possibly creating the histogram if it | 47 * in the histogram given by |name|, possibly creating the histogram if it |
46 * does not exist. | 48 * does not exist. |
47 */ | 49 */ |
48 void (*HistogramCustomCounts)(struct PP_Var name, | 50 void (*HistogramCustomCounts)(PP_Instance instance, |
| 51 struct PP_Var name, |
49 int32_t sample, | 52 int32_t sample, |
50 int32_t min, | 53 int32_t min, |
51 int32_t max, | 54 int32_t max, |
52 uint32_t bucket_count); | 55 uint32_t bucket_count); |
53 /** | 56 /** |
54 * HistogramEnumeration is a pointer to a function which records a sample | 57 * HistogramEnumeration is a pointer to a function which records a sample |
55 * in the histogram given by |name|, possibly creating the histogram if it | 58 * 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 | 59 * does not exist. The sample represents a value in an enumeration bounded |
57 * by |boundary_value|, that is, sample < boundary_value always. | 60 * by |boundary_value|, that is, sample < boundary_value always. |
58 */ | 61 */ |
59 void (*HistogramEnumeration)(struct PP_Var name, | 62 void (*HistogramEnumeration)(PP_Instance instance, |
| 63 struct PP_Var name, |
60 int32_t sample, | 64 int32_t sample, |
61 int32_t boundary_value); | 65 int32_t boundary_value); |
62 }; | 66 }; |
63 | 67 |
64 typedef struct PPB_UMA_Private_0_1 PPB_UMA_Private; | 68 typedef struct PPB_UMA_Private_0_2 PPB_UMA_Private; |
65 /** | 69 /** |
66 * @} | 70 * @} |
67 */ | 71 */ |
68 | 72 |
69 #endif /* PPAPI_C_PRIVATE_PPB_UMA_PRIVATE_H_ */ | 73 #endif /* PPAPI_C_PRIVATE_PPB_UMA_PRIVATE_H_ */ |
70 | 74 |
OLD | NEW |