| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 #include "ppapi/shared_impl/ppb_trace_event_impl.h" | 5 #include "ppapi/shared_impl/ppb_trace_event_impl.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/debug/trace_event.h" | |
| 9 #include "base/threading/platform_thread.h" | 8 #include "base/threading/platform_thread.h" |
| 9 #include "base/trace_event/trace_event.h" |
| 10 #include "ppapi/thunk/thunk.h" | 10 #include "ppapi/thunk/thunk.h" |
| 11 | 11 |
| 12 namespace ppapi { | 12 namespace ppapi { |
| 13 | 13 |
| 14 // PPB_Trace_Event_Dev is a shared implementation because Trace Events can be | 14 // PPB_Trace_Event_Dev is a shared implementation because Trace Events can be |
| 15 // sent from either the plugin process or renderer process depending on whether | 15 // sent from either the plugin process or renderer process depending on whether |
| 16 // the plugin is in- or out-of-process. Also, for NaCl plugins these functions | 16 // the plugin is in- or out-of-process. Also, for NaCl plugins these functions |
| 17 // will be executed from untrusted code and handled appropriately by tracing | 17 // will be executed from untrusted code and handled appropriately by tracing |
| 18 // functionality in the IRT. | 18 // functionality in the IRT. |
| 19 | 19 |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 const PPB_Trace_Event_Dev_0_1* GetPPB_Trace_Event_Dev_0_1_Thunk() { | 124 const PPB_Trace_Event_Dev_0_1* GetPPB_Trace_Event_Dev_0_1_Thunk() { |
| 125 return &g_ppb_trace_event_thunk_0_1; | 125 return &g_ppb_trace_event_thunk_0_1; |
| 126 } | 126 } |
| 127 | 127 |
| 128 const PPB_Trace_Event_Dev_0_2* GetPPB_Trace_Event_Dev_0_2_Thunk() { | 128 const PPB_Trace_Event_Dev_0_2* GetPPB_Trace_Event_Dev_0_2_Thunk() { |
| 129 return &g_ppb_trace_event_thunk_0_2; | 129 return &g_ppb_trace_event_thunk_0_2; |
| 130 } | 130 } |
| 131 | 131 |
| 132 } // namespace thunk | 132 } // namespace thunk |
| 133 } // namespace ppapi | 133 } // namespace ppapi |
| OLD | NEW |