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/proxy/ppb_core_proxy.h" | 5 #include "ppapi/proxy/ppb_core_proxy.h" |
6 | 6 |
7 #include <stdlib.h> // For malloc | 7 #include <stdlib.h> // For malloc |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/debug/trace_event.h" | |
11 #include "base/logging.h" | 10 #include "base/logging.h" |
12 #include "base/time/time.h" | 11 #include "base/time/time.h" |
| 12 #include "base/trace_event/trace_event.h" |
13 #include "ppapi/c/pp_completion_callback.h" | 13 #include "ppapi/c/pp_completion_callback.h" |
14 #include "ppapi/c/pp_resource.h" | 14 #include "ppapi/c/pp_resource.h" |
15 #include "ppapi/c/ppb_core.h" | 15 #include "ppapi/c/ppb_core.h" |
16 #include "ppapi/proxy/plugin_dispatcher.h" | 16 #include "ppapi/proxy/plugin_dispatcher.h" |
17 #include "ppapi/proxy/plugin_resource_tracker.h" | 17 #include "ppapi/proxy/plugin_resource_tracker.h" |
18 #include "ppapi/proxy/ppapi_messages.h" | 18 #include "ppapi/proxy/ppapi_messages.h" |
19 #include "ppapi/shared_impl/ppapi_globals.h" | 19 #include "ppapi/shared_impl/ppapi_globals.h" |
20 #include "ppapi/shared_impl/proxy_lock.h" | 20 #include "ppapi/shared_impl/proxy_lock.h" |
21 #include "ppapi/shared_impl/time_conversion.h" | 21 #include "ppapi/shared_impl/time_conversion.h" |
22 | 22 |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 ppb_core_impl_->AddRefResource(resource.host_resource()); | 124 ppb_core_impl_->AddRefResource(resource.host_resource()); |
125 } | 125 } |
126 | 126 |
127 void PPB_Core_Proxy::OnMsgReleaseResource(const HostResource& resource) { | 127 void PPB_Core_Proxy::OnMsgReleaseResource(const HostResource& resource) { |
128 ppb_core_impl_->ReleaseResource(resource.host_resource()); | 128 ppb_core_impl_->ReleaseResource(resource.host_resource()); |
129 } | 129 } |
130 #endif // !defined(OS_NACL) | 130 #endif // !defined(OS_NACL) |
131 | 131 |
132 } // namespace proxy | 132 } // namespace proxy |
133 } // namespace ppapi | 133 } // namespace ppapi |
OLD | NEW |