| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/ppp_instance_proxy.h" | 5 #include "ppapi/proxy/ppp_instance_proxy.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "ppapi/c/pp_var.h" | 9 #include "ppapi/c/pp_var.h" |
| 10 #include "ppapi/c/ppp_instance.h" | 10 #include "ppapi/c/ppp_instance.h" |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 | 175 |
| 176 void PPP_Instance_Proxy::OnMsgHandleInputEvent(PP_Instance instance, | 176 void PPP_Instance_Proxy::OnMsgHandleInputEvent(PP_Instance instance, |
| 177 const PP_InputEvent& event, | 177 const PP_InputEvent& event, |
| 178 PP_Bool* result) { | 178 PP_Bool* result) { |
| 179 *result = ppp_instance_target()->HandleInputEvent(instance, &event); | 179 *result = ppp_instance_target()->HandleInputEvent(instance, &event); |
| 180 } | 180 } |
| 181 | 181 |
| 182 void PPP_Instance_Proxy::OnMsgHandleDocumentLoad(PP_Instance instance, | 182 void PPP_Instance_Proxy::OnMsgHandleDocumentLoad(PP_Instance instance, |
| 183 PP_Resource url_loader, | 183 PP_Resource url_loader, |
| 184 PP_Bool* result) { | 184 PP_Bool* result) { |
| 185 PPB_URLLoader_Proxy::TrackPluginResource(url_loader); | 185 PPB_URLLoader_Proxy::TrackPluginResource(instance, url_loader); |
| 186 *result = ppp_instance_target()->HandleDocumentLoad( | 186 *result = ppp_instance_target()->HandleDocumentLoad( |
| 187 instance, url_loader); | 187 instance, url_loader); |
| 188 } | 188 } |
| 189 | 189 |
| 190 void PPP_Instance_Proxy::OnMsgGetInstanceObject( | 190 void PPP_Instance_Proxy::OnMsgGetInstanceObject( |
| 191 PP_Instance instance, | 191 PP_Instance instance, |
| 192 SerializedVarReturnValue result) { | 192 SerializedVarReturnValue result) { |
| 193 result.Return(dispatcher(), | 193 result.Return(dispatcher(), |
| 194 ppp_instance_target()->GetInstanceObject(instance)); | 194 ppp_instance_target()->GetInstanceObject(instance)); |
| 195 } | 195 } |
| 196 | 196 |
| 197 } // namespace proxy | 197 } // namespace proxy |
| 198 } // namespace pp | 198 } // namespace pp |
| OLD | NEW |