1 // Copyright 2014 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.
5 #ifndef PPAPI_CPP_PRIVATE_UMA_PRIVATE_H_
6 #define PPAPI_CPP_PRIVATE_UMA_PRIVATE_H_
10 #include "ppapi/c/pp_instance.h"
11 #include "ppapi/cpp/instance_handle.h"
15 class CompletionCallback
;
20 explicit UMAPrivate(const InstanceHandle
& instance
);
23 static bool IsAvailable();
25 void HistogramCustomTimes(const std::string
& name
,
29 uint32_t bucket_count
);
31 void HistogramCustomCounts(const std::string
& name
,
35 uint32_t bucket_count
);
37 void HistogramEnumeration(const std::string
& name
,
39 int32_t boundary_value
);
41 int32_t IsCrashReportingEnabled(const CompletionCallback
& cc
);
44 PP_Instance instance_
;
49 #endif // PPAPI_CPP_PRIVATE_UMA_PRIVATE_H_