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

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 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 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « ppapi/proxy/device_enumeration_resource_helper_unittest.cc ('k') | ppapi/proxy/plugin_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698