| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_testing_proxy.h" | 5 #include "ppapi/proxy/ppb_testing_proxy.h" |
| 6 | 6 |
| 7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
| 8 #include "ppapi/c/dev/ppb_testing_dev.h" | 8 #include "ppapi/c/dev/ppb_testing_dev.h" |
| 9 #include "ppapi/proxy/plugin_dispatcher.h" | 9 #include "ppapi/proxy/plugin_dispatcher.h" |
| 10 #include "ppapi/proxy/plugin_resource.h" | 10 #include "ppapi/proxy/plugin_resource.h" |
| 11 #include "ppapi/proxy/plugin_resource_tracker.h" | 11 #include "ppapi/proxy/plugin_resource_tracker.h" |
| 12 #include "ppapi/proxy/ppapi_messages.h" | 12 #include "ppapi/proxy/ppapi_messages.h" |
| 13 | 13 |
| 14 using ppapi::HostResource; |
| 15 |
| 14 namespace pp { | 16 namespace pp { |
| 15 namespace proxy { | 17 namespace proxy { |
| 16 | 18 |
| 17 namespace { | 19 namespace { |
| 18 | 20 |
| 19 PP_Bool ReadImageData(PP_Resource graphics_2d, | 21 PP_Bool ReadImageData(PP_Resource graphics_2d, |
| 20 PP_Resource image, | 22 PP_Resource image, |
| 21 const PP_Point* top_left) { | 23 const PP_Point* top_left) { |
| 22 PluginResource* image_object = PluginResourceTracker::GetInstance()-> | 24 PluginResource* image_object = PluginResourceTracker::GetInstance()-> |
| 23 GetResourceObject(image); | 25 GetResourceObject(image); |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 ppb_testing_target()->QuitMessageLoop(instance); | 128 ppb_testing_target()->QuitMessageLoop(instance); |
| 127 } | 129 } |
| 128 | 130 |
| 129 void PPB_Testing_Proxy::OnMsgGetLiveObjectsForInstance(PP_Instance instance, | 131 void PPB_Testing_Proxy::OnMsgGetLiveObjectsForInstance(PP_Instance instance, |
| 130 uint32_t* result) { | 132 uint32_t* result) { |
| 131 *result = ppb_testing_target()->GetLiveObjectsForInstance(instance); | 133 *result = ppb_testing_target()->GetLiveObjectsForInstance(instance); |
| 132 } | 134 } |
| 133 | 135 |
| 134 } // namespace proxy | 136 } // namespace proxy |
| 135 } // namespace pp | 137 } // namespace pp |
| OLD | NEW |