Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(227)

Side by Side Diff: ppapi/proxy/plugin_dispatcher.cc

Issue 11411047: Introduce PPB_AudioInput_Dev v0.3 and refactor the device enumeration code: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698