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