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

Unified Diff: content/renderer/pepper/ppb_uma_private_impl.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: add back browser impl for testing Created 7 years, 1 month 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: content/renderer/pepper/ppb_uma_private_impl.h
diff --git a/content/renderer/pepper/ppb_uma_private_impl.h b/content/renderer/pepper/ppb_uma_private_impl.h
index 91eae471043b6eb2475f30eecf4197c8b632a12c..5a1840ad91387a9497548d56161a73df0b1aa259 100644
--- a/content/renderer/pepper/ppb_uma_private_impl.h
+++ b/content/renderer/pepper/ppb_uma_private_impl.h
@@ -5,15 +5,50 @@
#ifndef CONTENT_RENDERER_PEPPER_PPB_UMA_PRIVATE_IMPL_H_
#define CONTENT_RENDERER_PEPPER_PPB_UMA_PRIVATE_IMPL_H_
-#include "ppapi/c/private/ppb_uma_private.h"
+#include "ppapi/c/pp_instance.h"
+#include "ppapi/c/pp_var.h"
+#include "ppapi/thunk/ppb_uma_singleton_api.h"
+
+namespace ppapi {
+class Resource;
+}
namespace content {
-class PPB_UMA_Private_Impl {
+// Implements PPB_UMA_Private_API. The implementation in the browser process
+// is chrome specific, this is a content implementation.
+class UMA_Private_Impl : public ppapi::thunk::PPB_UMA_Singleton_API,
+ public ppapi::Resource {
public:
- static const PPB_UMA_Private* GetInterface();
+ UMA_Private_Impl();
+ // Resource implementation.
+ virtual ppapi::thunk::PPB_UMA_Singleton_API* AsPPB_UMA_Singleton_API()
+ OVERRIDE;
+
+ // PPB_UMA_Private_API implementation.
+ virtual void HistogramCustomTimes(PP_Instance instance,
+ struct PP_Var name,
+ int64_t sample,
+ int64_t min,
+ int64_t max,
+ uint32_t bucket_count) OVERRIDE;
+
+ virtual void HistogramCustomCounts(PP_Instance instance,
+ struct PP_Var name,
+ int32_t sample,
+ int32_t min,
+ int32_t max,
+ uint32_t bucket_count) OVERRIDE;
+
+ virtual void HistogramEnumeration(PP_Instance instance,
+ struct PP_Var name,
+ int32_t sample,
+ int32_t boundary_value) OVERRIDE;
+ private:
+ virtual ~UMA_Private_Impl();
};
+
} // namespace content
#endif // CONTENT_RENDERER_PEPPER_PPB_UMA_PRIVATE_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698