OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_RENDERER_PEPPER_PPB_UMA_PRIVATE_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PPB_UMA_PRIVATE_IMPL_H_ |
6 #define CONTENT_RENDERER_PEPPER_PPB_UMA_PRIVATE_IMPL_H_ | 6 #define CONTENT_RENDERER_PEPPER_PPB_UMA_PRIVATE_IMPL_H_ |
7 | 7 |
8 #include "ppapi/c/private/ppb_uma_private.h" | 8 #include "ppapi/c/pp_instance.h" |
| 9 #include "ppapi/c/pp_var.h" |
| 10 #include "ppapi/thunk/ppb_uma_singleton_api.h" |
| 11 |
| 12 namespace ppapi { |
| 13 class Resource; |
| 14 } |
9 | 15 |
10 namespace content { | 16 namespace content { |
11 | 17 |
12 class PPB_UMA_Private_Impl { | 18 // Implements PPB_UMA_Private_API. The implementation in the browser process |
| 19 // is chrome specific, this is a content implementation. |
| 20 class UMA_Private_Impl : public ppapi::thunk::PPB_UMA_Singleton_API, |
| 21 public ppapi::Resource { |
13 public: | 22 public: |
14 static const PPB_UMA_Private* GetInterface(); | 23 UMA_Private_Impl(); |
| 24 // Resource implementation. |
| 25 virtual ppapi::thunk::PPB_UMA_Singleton_API* AsPPB_UMA_Singleton_API() |
| 26 OVERRIDE; |
| 27 |
| 28 // PPB_UMA_Private_API implementation. |
| 29 virtual void HistogramCustomTimes(PP_Instance instance, |
| 30 struct PP_Var name, |
| 31 int64_t sample, |
| 32 int64_t min, |
| 33 int64_t max, |
| 34 uint32_t bucket_count) OVERRIDE; |
| 35 |
| 36 virtual void HistogramCustomCounts(PP_Instance instance, |
| 37 struct PP_Var name, |
| 38 int32_t sample, |
| 39 int32_t min, |
| 40 int32_t max, |
| 41 uint32_t bucket_count) OVERRIDE; |
| 42 |
| 43 virtual void HistogramEnumeration(PP_Instance instance, |
| 44 struct PP_Var name, |
| 45 int32_t sample, |
| 46 int32_t boundary_value) OVERRIDE; |
| 47 private: |
| 48 virtual ~UMA_Private_Impl(); |
15 }; | 49 }; |
16 | 50 |
| 51 |
17 } // namespace content | 52 } // namespace content |
18 | 53 |
19 #endif // CONTENT_RENDERER_PEPPER_PPB_UMA_PRIVATE_IMPL_H_ | 54 #endif // CONTENT_RENDERER_PEPPER_PPB_UMA_PRIVATE_IMPL_H_ |
OLD | NEW |