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 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 } | 335 } |
336 } | 336 } |
337 | 337 |
338 // static | 338 // static |
339 void PluginDispatcher::LockedDispatchResourceReply( | 339 void PluginDispatcher::LockedDispatchResourceReply( |
340 const ppapi::proxy::ResourceMessageReplyParams& reply_params, | 340 const ppapi::proxy::ResourceMessageReplyParams& reply_params, |
341 const IPC::Message& nested_msg) { | 341 const IPC::Message& nested_msg) { |
342 Resource* resource = PpapiGlobals::Get()->GetResourceTracker()->GetResource( | 342 Resource* resource = PpapiGlobals::Get()->GetResourceTracker()->GetResource( |
343 reply_params.pp_resource()); | 343 reply_params.pp_resource()); |
344 if (!resource) { | 344 if (!resource) { |
345 if (reply_params.sequence()) | 345 DLOG_IF(INFO, reply_params.sequence() != 0) |
346 NOTREACHED(); | 346 << "Pepper resource reply message received but the resource doesn't " |
| 347 "exist (probably has been destroyed)."; |
347 return; | 348 return; |
348 } | 349 } |
349 resource->OnReplyReceived(reply_params, nested_msg); | 350 resource->OnReplyReceived(reply_params, nested_msg); |
350 } | 351 } |
351 | 352 |
352 } // namespace proxy | 353 } // namespace proxy |
353 } // namespace ppapi | 354 } // namespace ppapi |
OLD | NEW |