Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(350)

Side by Side Diff: ppapi/c/private/ppb_uma_private.h

Issue 11048006: Convert UMA interface to IDL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: git try Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* Copyright (c) 2011 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
6 /* From private/ppb_uma_private.idl modified Tue Oct 2 13:17:06 2012. */
7
5 #ifndef PPAPI_C_PRIVATE_PPB_UMA_PRIVATE_H_ 8 #ifndef PPAPI_C_PRIVATE_PPB_UMA_PRIVATE_H_
6 #define PPAPI_C_PRIVATE_PPB_UMA_PRIVATE_H_ 9 #define PPAPI_C_PRIVATE_PPB_UMA_PRIVATE_H_
7 10
11 #include "ppapi/c/pp_bool.h"
12 #include "ppapi/c/pp_macros.h"
8 #include "ppapi/c/pp_stdint.h" 13 #include "ppapi/c/pp_stdint.h"
9 #include "ppapi/c/pp_var.h" 14 #include "ppapi/c/pp_var.h"
10 15
11 #define PPB_UMA_PRIVATE_INTERFACE "PPB_UMA(Private);0.1" 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
12 18
13 struct PPB_UMA_Private { 19 /**
20 * @file
21 * This file defines the <code>PPB_UMA_Private</code> interface.
22 */
23
24
25 /**
26 * @addtogroup Interfaces
27 * @{
28 */
29 /**
30 * Contains functions for plugins to report UMA usage stats.
31 */
32 struct PPB_UMA_Private_0_1 {
14 /** 33 /**
15 * HistogramCustomTimes is a pointer to a function which records a time 34 * HistogramCustomTimes is a pointer to a function which records a time
16 * sample given in milliseconds in the histogram given by |name|, possibly 35 * sample given in milliseconds in the histogram given by |name|, possibly
17 * creating the histogram if it does not exist. 36 * creating the histogram if it does not exist.
18 */ 37 */
19 void (*HistogramCustomTimes)(struct PP_Var name, 38 void (*HistogramCustomTimes)(struct PP_Var name,
20 int64_t sample, 39 int64_t sample,
21 int64_t min, int64_t max, 40 int64_t min,
41 int64_t max,
22 uint32_t bucket_count); 42 uint32_t bucket_count);
23
24 /** 43 /**
25 * HistogramCustomCounts is a pointer to a function which records a sample 44 * HistogramCustomCounts is a pointer to a function which records a sample
26 * in the histogram given by |name|, possibly creating the histogram if it 45 * in the histogram given by |name|, possibly creating the histogram if it
27 * does not exist. 46 * does not exist.
28 */ 47 */
29 void (*HistogramCustomCounts)(struct PP_Var name, 48 void (*HistogramCustomCounts)(struct PP_Var name,
30 int32_t sample, 49 int32_t sample,
31 int32_t min, int32_t max, 50 int32_t min,
51 int32_t max,
32 uint32_t bucket_count); 52 uint32_t bucket_count);
33
34 /** 53 /**
35 * HistogramEnumeration is a pointer to a function which records a sample 54 * HistogramEnumeration is a pointer to a function which records a sample
36 * in the histogram given by |name|, possibly creating the histogram if it 55 * in the histogram given by |name|, possibly creating the histogram if it
37 * does not exist. The sample represents a value in an enumeration bounded 56 * does not exist. The sample represents a value in an enumeration bounded
38 * by |boundary_value|, that is, sample < boundary_value always. 57 * by |boundary_value|, that is, sample < boundary_value always.
39 */ 58 */
40 void (*HistogramEnumeration)(struct PP_Var name, 59 void (*HistogramEnumeration)(struct PP_Var name,
41 int32_t sample, 60 int32_t sample,
42 int32_t boundary_value); 61 int32_t boundary_value);
43 }; 62 };
44 63
64 typedef struct PPB_UMA_Private_0_1 PPB_UMA_Private;
65 /**
66 * @}
67 */
68
45 #endif /* PPAPI_C_PRIVATE_PPB_UMA_PRIVATE_H_ */ 69 #endif /* PPAPI_C_PRIVATE_PPB_UMA_PRIVATE_H_ */
70
OLDNEW
« no previous file with comments | « ppapi/api/private/ppb_uma_private.idl ('k') | ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698