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 /** | 6 /** |
7 * This file defines the <code>PPB_UMA_Private</code> interface. | 7 * This file defines the <code>PPB_UMA_Private</code> interface. |
8 */ | 8 */ |
| 9 |
| 10 [generate_thunk,thunk_include="ppapi/thunk/ppb_uma_singleton_api.h"] |
| 11 |
9 label Chrome { | 12 label Chrome { |
10 M18 = 0.1 | 13 M33 = 0.2 |
11 }; | 14 }; |
12 | 15 |
13 /** | 16 /** |
14 * Contains functions for plugins to report UMA usage stats. | 17 * Contains functions for plugins to report UMA usage stats. |
15 */ | 18 */ |
16 interface PPB_UMA_Private { | 19 interface PPB_UMA_Private { |
17 /** | 20 /** |
18 * HistogramCustomTimes is a pointer to a function which records a time | 21 * HistogramCustomTimes is a pointer to a function which records a time |
19 * sample given in milliseconds in the histogram given by |name|, possibly | 22 * sample given in milliseconds in the histogram given by |name|, possibly |
20 * creating the histogram if it does not exist. | 23 * creating the histogram if it does not exist. |
21 */ | 24 */ |
22 void HistogramCustomTimes([in] PP_Var name, | 25 [singleton,api=PPB_UMA_Singleton_API] |
| 26 void HistogramCustomTimes([in] PP_Instance instance, |
| 27 [in] PP_Var name, |
23 [in] int64_t sample, | 28 [in] int64_t sample, |
24 [in] int64_t min, | 29 [in] int64_t min, |
25 [in] int64_t max, | 30 [in] int64_t max, |
26 [in] uint32_t bucket_count); | 31 [in] uint32_t bucket_count); |
27 | 32 |
28 /** | 33 /** |
29 * HistogramCustomCounts is a pointer to a function which records a sample | 34 * HistogramCustomCounts is a pointer to a function which records a sample |
30 * in the histogram given by |name|, possibly creating the histogram if it | 35 * in the histogram given by |name|, possibly creating the histogram if it |
31 * does not exist. | 36 * does not exist. |
32 */ | 37 */ |
33 void HistogramCustomCounts([in] PP_Var name, | 38 [singleton,api=PPB_UMA_Singleton_API] |
| 39 void HistogramCustomCounts([in] PP_Instance instance, |
| 40 [in] PP_Var name, |
34 [in] int32_t sample, | 41 [in] int32_t sample, |
35 [in] int32_t min, | 42 [in] int32_t min, |
36 [in] int32_t max, | 43 [in] int32_t max, |
37 [in] uint32_t bucket_count); | 44 [in] uint32_t bucket_count); |
38 | 45 |
39 /** | 46 /** |
40 * HistogramEnumeration is a pointer to a function which records a sample | 47 * HistogramEnumeration is a pointer to a function which records a sample |
41 * in the histogram given by |name|, possibly creating the histogram if it | 48 * in the histogram given by |name|, possibly creating the histogram if it |
42 * does not exist. The sample represents a value in an enumeration bounded | 49 * does not exist. The sample represents a value in an enumeration bounded |
43 * by |boundary_value|, that is, sample < boundary_value always. | 50 * by |boundary_value|, that is, sample < boundary_value always. |
44 */ | 51 */ |
45 void HistogramEnumeration([in] PP_Var name, | 52 [singleton,api=PPB_UMA_Singleton_API] |
| 53 void HistogramEnumeration([in] PP_Instance instance, |
| 54 [in] PP_Var name, |
46 [in] int32_t sample, | 55 [in] int32_t sample, |
47 [in] int32_t boundary_value); | 56 [in] int32_t boundary_value); |
48 }; | 57 }; |
OLD | NEW |