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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: ppapi/c/private/ppb_uma_private.h
diff --git a/ppapi/c/private/ppb_uma_private.h b/ppapi/c/private/ppb_uma_private.h
index 0b1c5bf122001a65778c2e61297855519adcc167..b681addef66970c1eaadcde68022bb88a1e161ae 100644
--- a/ppapi/c/private/ppb_uma_private.h
+++ b/ppapi/c/private/ppb_uma_private.h
@@ -1,16 +1,35 @@
-/* Copyright (c) 2011 The Chromium Authors. All rights reserved.
+/* Copyright (c) 2012 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
+
+/* From private/ppb_uma_private.idl modified Tue Oct 2 13:17:06 2012. */
+
#ifndef PPAPI_C_PRIVATE_PPB_UMA_PRIVATE_H_
#define PPAPI_C_PRIVATE_PPB_UMA_PRIVATE_H_
+#include "ppapi/c/pp_bool.h"
+#include "ppapi/c/pp_macros.h"
#include "ppapi/c/pp_stdint.h"
#include "ppapi/c/pp_var.h"
-#define PPB_UMA_PRIVATE_INTERFACE "PPB_UMA(Private);0.1"
+#define PPB_UMA_PRIVATE_INTERFACE_0_1 "PPB_UMA_Private;0.1"
+#define PPB_UMA_PRIVATE_INTERFACE PPB_UMA_PRIVATE_INTERFACE_0_1
+
+/**
+ * @file
+ * This file defines the <code>PPB_UMA_Private</code> interface.
+ */
+
-struct PPB_UMA_Private {
+/**
+ * @addtogroup Interfaces
+ * @{
+ */
+/**
+ * Contains functions for plugins to report UMA usage stats.
+ */
+struct PPB_UMA_Private_0_1 {
/**
* HistogramCustomTimes is a pointer to a function which records a time
* sample given in milliseconds in the histogram given by |name|, possibly
@@ -18,9 +37,9 @@ struct PPB_UMA_Private {
*/
void (*HistogramCustomTimes)(struct PP_Var name,
int64_t sample,
- int64_t min, int64_t max,
+ int64_t min,
+ int64_t max,
uint32_t bucket_count);
-
/**
* HistogramCustomCounts is a pointer to a function which records a sample
* in the histogram given by |name|, possibly creating the histogram if it
@@ -28,9 +47,9 @@ struct PPB_UMA_Private {
*/
void (*HistogramCustomCounts)(struct PP_Var name,
int32_t sample,
- int32_t min, int32_t max,
+ int32_t min,
+ int32_t max,
uint32_t bucket_count);
-
/**
* HistogramEnumeration is a pointer to a function which records a sample
* in the histogram given by |name|, possibly creating the histogram if it
@@ -42,4 +61,10 @@ struct PPB_UMA_Private {
int32_t boundary_value);
};
+typedef struct PPB_UMA_Private_0_1 PPB_UMA_Private;
+/**
+ * @}
+ */
+
#endif /* PPAPI_C_PRIVATE_PPB_UMA_PRIVATE_H_ */
+
« 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