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

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

Issue 6903084: Add UMA private PPAPI interface for UMA logging from NaCl plugin (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: merge with HEAD Created 9 years, 7 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
« no previous file with comments | « no previous file | ppapi/ppapi_tests.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 /* Copyright (c) 2011 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.
4 */
5 #ifndef PPAPI_C_PRIVATE_PPB_UMA_PRIVATE_H_
6 #define PPAPI_C_PRIVATE_PPB_UMA_PRIVATE_H_
7
8 #include "ppapi/c/pp_stdint.h"
9 #include "ppapi/c/pp_var.h"
10
11 #define PPB_UMA_PRIVATE_INTERFACE "PPB_UMA(Private);0.1"
12
13 struct PPB_UMA_Private {
14 /**
15 * HistogramCustomTimes is a pointer to a function which records a time
16 * sample given in milliseconds in the histogram given by |name|, possibly
17 * creating the histogram if it does not exist.
18 */
19 void (*HistogramCustomTimes)(struct PP_Var name,
20 int64_t sample,
21 int64_t min, int64_t max,
22 uint32_t bucket_count);
23
24 /**
25 * HistogramCustomCounts is a pointer to a function which records a sample
26 * in the histogram given by |name|, possibly creating the histogram if it
27 * does not exist.
28 */
29 void (*HistogramCustomCounts)(struct PP_Var name,
30 int32_t sample,
31 int32_t min, int32_t max,
32 uint32_t bucket_count);
33
34 /**
35 * HistogramEnumeration is a pointer to a function which records a sample
36 * 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
38 * by |boundary_value|, that is, sample < boundary_value always.
39 */
40 void (*HistogramEnumeration)(struct PP_Var name,
41 int32_t sample,
42 int32_t boundary_value);
43 };
44
45 #endif /* PPAPI_C_PRIVATE_PPB_UMA_PRIVATE_H_ */
OLDNEW
« no previous file with comments | « no previous file | ppapi/ppapi_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698