OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 // | |
yzshen1
2013/12/04 19:32:51
redundant line?
elijahtaylor1
2013/12/21 02:26:21
Done.
| |
5 | |
6 #ifndef PPAPI_PROXY_UMA_PRIVATE_RESOURCE_H_ | |
7 #define PPAPI_PROXY_UMA_PRIVATE_RESOURCE_H_ | |
8 | |
9 #include "ppapi/proxy/connection.h" | |
10 #include "ppapi/proxy/plugin_resource.h" | |
11 #include "ppapi/proxy/ppapi_proxy_export.h" | |
12 #include "ppapi/thunk/ppb_uma_singleton_api.h" | |
13 | |
14 namespace ppapi { | |
15 | |
16 namespace proxy { | |
17 | |
18 class PPAPI_PROXY_EXPORT UMAPrivateResource | |
19 : public PluginResource, | |
20 public thunk::PPB_UMA_Singleton_API { | |
21 public: | |
22 UMAPrivateResource(Connection connection, PP_Instance instance); | |
23 virtual ~UMAPrivateResource(); | |
24 | |
25 // Resource overrides. | |
26 virtual thunk::PPB_UMA_Singleton_API* AsPPB_UMA_Singleton_API() OVERRIDE; | |
27 | |
28 // PPB_UMA_Singleton_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 | |
48 private: | |
49 DISALLOW_COPY_AND_ASSIGN(UMAPrivateResource); | |
50 }; | |
51 | |
52 } // namespace proxy | |
53 } // namespace ppapi | |
54 | |
55 #endif // PPAPI_PROXY_UMA_PRIVATE_RESOURCE_H_ | |
OLD | NEW |