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/plugin_dispatcher.h" | 5 #include "ppapi/proxy/plugin_dispatcher.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 | 277 |
278 void PluginDispatcher::OnMsgResourceReply( | 278 void PluginDispatcher::OnMsgResourceReply( |
279 const ppapi::proxy::ResourceMessageReplyParams& reply_params, | 279 const ppapi::proxy::ResourceMessageReplyParams& reply_params, |
280 const IPC::Message& nested_msg) { | 280 const IPC::Message& nested_msg) { |
281 Resource* resource = PpapiGlobals::Get()->GetResourceTracker()->GetResource( | 281 Resource* resource = PpapiGlobals::Get()->GetResourceTracker()->GetResource( |
282 reply_params.pp_resource()); | 282 reply_params.pp_resource()); |
283 if (!resource) { | 283 if (!resource) { |
284 NOTREACHED(); | 284 NOTREACHED(); |
285 return; | 285 return; |
286 } | 286 } |
287 resource->OnReplyReceived(reply_params.sequence(), reply_params.result(), | 287 resource->OnReplyReceived(reply_params, nested_msg); |
288 nested_msg); | |
289 } | 288 } |
290 | 289 |
291 void PluginDispatcher::OnMsgSupportsInterface( | 290 void PluginDispatcher::OnMsgSupportsInterface( |
292 const std::string& interface_name, | 291 const std::string& interface_name, |
293 bool* result) { | 292 bool* result) { |
294 *result = !!GetPluginInterface(interface_name); | 293 *result = !!GetPluginInterface(interface_name); |
295 | 294 |
296 // Do fallback for PPP_Instance. This is a hack here and if we have more | 295 // Do fallback for PPP_Instance. This is a hack here and if we have more |
297 // cases like this it should be generalized. The PPP_Instance proxy always | 296 // cases like this it should be generalized. The PPP_Instance proxy always |
298 // proxies the 1.1 interface, and then does fallback to 1.0 inside the | 297 // proxies the 1.1 interface, and then does fallback to 1.0 inside the |
(...skipping 12 matching lines...) Expand all Loading... |
311 // once they're set. The user will have to restart to get new font prefs | 310 // once they're set. The user will have to restart to get new font prefs |
312 // propogated to plugins. | 311 // propogated to plugins. |
313 if (!received_preferences_) { | 312 if (!received_preferences_) { |
314 received_preferences_ = true; | 313 received_preferences_ = true; |
315 preferences_ = prefs; | 314 preferences_ = prefs; |
316 } | 315 } |
317 } | 316 } |
318 | 317 |
319 } // namespace proxy | 318 } // namespace proxy |
320 } // namespace ppapi | 319 } // namespace ppapi |
OLD | NEW |