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_ |