OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 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 |
| 5 #ifndef PPAPI_SHARED_IMPL_PPB_TRACE_EVENT_SHARED_H_ |
| 6 #define PPAPI_SHARED_IMPL_PPB_TRACE_EVENT_SHARED_H_ |
| 7 |
| 8 #include "ppapi/c/dev/ppb_trace_event_dev.h" |
| 9 #include "ppapi/c/pp_bool.h" |
| 10 #include "ppapi/shared_impl/ppapi_shared_export.h" |
| 11 |
| 12 namespace ppapi { |
| 13 |
| 14 // Contains the implementation of the trace_event functions that are |
| 15 // shared between the proxy and Chrome's implementation. Since these functions |
| 16 // are to be run from whatever plugin process/thread in which they originated, |
| 17 // the implementation lives in shared_impl. |
| 18 // |
| 19 class PPAPI_SHARED_EXPORT PPB_Trace_Event_Shared { |
| 20 public: |
| 21 static void* GetCategoryEnabled(const char* category_name); |
| 22 static int32_t AddTraceEvent(int8_t phase, |
| 23 const void* category_enabled, |
| 24 const char* name, |
| 25 uint64_t id, |
| 26 uint32_t num_args, |
| 27 const char* arg_names[], |
| 28 const uint8_t arg_types[], |
| 29 const uint64_t arg_values[], |
| 30 int32_t threshold_begin_id, |
| 31 int64_t threshold, |
| 32 uint8_t flags); |
| 33 static void SetThreadName(const char* thread_name); |
| 34 }; |
| 35 |
| 36 } // namespace ppapi |
| 37 |
| 38 #endif // PPAPI_SHARED_IMPL_PPB_TRACE_EVENT_SHARED_H_ |
OLD | NEW |