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

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: formatting Created 9 years, 8 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') | webkit/plugins/ppapi/ppb_uma_private_impl.cc » ('J')
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"
brettw 2011/04/29 21:05:05 This should include pp_var.h also since you use it
elijahtaylor (use chromium) 2011/04/29 21:52:08 Done.
9
10 #define PPB_UMA_PRIVATE_INTERFACE "PPB_UMA(Private);0.1"
11
12 struct PPB_UMA_Private {
13 /**
14 * HistogramCustomTimes is a pointer to a function which records a time
15 * sample given in milliseconds in the histogram given by |name|, possibly
16 * creating the histogram if it does not exist.
17 */
18 void (*HistogramCustomTimes)(struct PP_Var name,
19 int64_t sample,
20 int64_t min, int64_t max,
21 uint32_t bucket_count);
22
23 /**
24 * HistogramCustomCounts is a pointer to a function which records a sample
25 * in the histogram given by |name|, possibly creating the histogram if it
26 * does not exist.
27 */
28 void (*HistogramCustomCounts)(struct PP_Var name,
29 int32_t sample,
30 int32_t min, int32_t max,
31 uint32_t bucket_count);
32
33 /**
34 * HistogramEnumeration is a pointer to a function which records a sample
35 * in the histogram given by |name|, possibly creating the histogram if it
36 * does not exist. The sample represents a value in an enumeration bounded
37 * by |boundary_value|, that is, sample < boundary_value always.
38 */
39 void (*HistogramEnumeration)(struct PP_Var name,
40 int32_t sample,
41 int32_t boundary_value);
42 };
43
44 #endif /* PPAPI_C_PRIVATE_PPB_UMA_PRIVATE_H_ */
OLDNEW
« no previous file with comments | « no previous file | ppapi/ppapi_tests.gypi » ('j') | webkit/plugins/ppapi/ppb_uma_private_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698