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

Unified Diff: ppapi/thunk/ppb_uma_singleton_api.h

Issue 61643022: Proxy private UMA pepper interface for out-of-process and NaCl plugins. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove unused histogram names Created 6 years, 11 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/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..28c38ef009c0f3493a9b871c2f81dd75c4e5a80f
--- /dev/null
+++ b/ppapi/thunk/ppb_uma_singleton_api.h
@@ -0,0 +1,43 @@
+// Copyright (c) 2014 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/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_
« chrome/renderer/chrome_content_renderer_client.cc ('K') | « ppapi/thunk/ppb_uma_private_thunk.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698