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" | 8 #include "base/debug/trace_event.h" |
| 9 #include "base/threading/platform_thread.h" |
9 #include "ppapi/thunk/thunk.h" | 10 #include "ppapi/thunk/thunk.h" |
10 | 11 |
11 | 12 |
12 namespace ppapi { | 13 namespace ppapi { |
13 | 14 |
14 // PPB_Trace_Event_Dev is a shared implementation because Trace Events can be | 15 // 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 | 16 // 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 | 17 // 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 | 18 // will be executed from untrusted code and handled appropriately by tracing |
18 // functionality in the IRT. | 19 // functionality in the IRT. |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 const PPB_Trace_Event_Dev_0_1* GetPPB_Trace_Event_Dev_0_1_Thunk() { | 115 const PPB_Trace_Event_Dev_0_1* GetPPB_Trace_Event_Dev_0_1_Thunk() { |
115 return &g_ppb_trace_event_thunk_0_1; | 116 return &g_ppb_trace_event_thunk_0_1; |
116 } | 117 } |
117 | 118 |
118 const PPB_Trace_Event_Dev_0_2* GetPPB_Trace_Event_Dev_0_2_Thunk() { | 119 const PPB_Trace_Event_Dev_0_2* GetPPB_Trace_Event_Dev_0_2_Thunk() { |
119 return &g_ppb_trace_event_thunk_0_2; | 120 return &g_ppb_trace_event_thunk_0_2; |
120 } | 121 } |
121 | 122 |
122 } // namespace thunk | 123 } // namespace thunk |
123 } // namespace ppapi | 124 } // namespace ppapi |
OLD | NEW |