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" | |
8 #include "base/threading/platform_thread.h" | 7 #include "base/threading/platform_thread.h" |
9 #include "base/trace_event/trace_event.h" | 8 #include "base/trace_event/trace_event.h" |
10 #include "ppapi/thunk/thunk.h" | 9 #include "ppapi/thunk/thunk.h" |
11 | 10 |
12 namespace ppapi { | 11 namespace ppapi { |
13 | 12 |
14 // PPB_Trace_Event_Dev is a shared implementation because Trace Events can be | 13 // 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 | 14 // 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 | 15 // 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 | 16 // will be executed from untrusted code and handled appropriately by tracing |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 const PPB_Trace_Event_Dev_0_1* GetPPB_Trace_Event_Dev_0_1_Thunk() { | 125 const PPB_Trace_Event_Dev_0_1* GetPPB_Trace_Event_Dev_0_1_Thunk() { |
127 return &g_ppb_trace_event_thunk_0_1; | 126 return &g_ppb_trace_event_thunk_0_1; |
128 } | 127 } |
129 | 128 |
130 const PPB_Trace_Event_Dev_0_2* GetPPB_Trace_Event_Dev_0_2_Thunk() { | 129 const PPB_Trace_Event_Dev_0_2* GetPPB_Trace_Event_Dev_0_2_Thunk() { |
131 return &g_ppb_trace_event_thunk_0_2; | 130 return &g_ppb_trace_event_thunk_0_2; |
132 } | 131 } |
133 | 132 |
134 } // namespace thunk | 133 } // namespace thunk |
135 } // namespace ppapi | 134 } // namespace ppapi |
OLD | NEW |