| Index: ppapi/thunk/ppb_uma_singleton_api.h
|
| diff --git a/ppapi/thunk/ppb_uma_singleton_api.h b/ppapi/thunk/ppb_uma_singleton_api.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0cf14617b41d8e79fe18c694872c5ca9e679f879
|
| --- /dev/null
|
| +++ b/ppapi/thunk/ppb_uma_singleton_api.h
|
| @@ -0,0 +1,45 @@
|
| +// Copyright (c) 2013 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.
|
| +
|
| +#ifndef PPAPI_THUNK_PPB_UMA_PRIVATE_API_H_
|
| +#define PPAPI_THUNK_PPB_UMA_PRIVATE_API_H_
|
| +
|
| +#include "ppapi/shared_impl/singleton_resource_id.h"
|
| +#include "ppapi/shared_impl/tracked_callback.h"
|
| +#include "ppapi/thunk/ppapi_thunk_export.h"
|
| +
|
| +namespace ppapi {
|
| +
|
| +namespace thunk {
|
| +
|
| +class PPAPI_THUNK_EXPORT PPB_UMA_Singleton_API {
|
| + public:
|
| + virtual ~PPB_UMA_Singleton_API() {}
|
| +
|
| + virtual void HistogramCustomTimes(PP_Instance instance,
|
| + struct PP_Var name,
|
| + int64_t sample,
|
| + int64_t min,
|
| + int64_t max,
|
| + uint32_t bucket_count) = 0;
|
| +
|
| + virtual void HistogramCustomCounts(PP_Instance instance,
|
| + struct PP_Var name,
|
| + int32_t sample,
|
| + int32_t min,
|
| + int32_t max,
|
| + uint32_t bucket_count) = 0;
|
| +
|
| + virtual void HistogramEnumeration(PP_Instance instance,
|
| + struct PP_Var name,
|
| + int32_t sample,
|
| + int32_t boundary_value) = 0;
|
| +
|
| + static const SingletonResourceID kSingletonResourceID = UMA_SINGLETON_ID;
|
| +};
|
| +
|
| +} // namespace thunk
|
| +} // namespace ppapi
|
| +
|
| +#endif // PPAPI_THUNK_PPB_UMA_PRIVATE_API_H_
|
|
|