| 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 "webkit/plugins/ppapi/ppb_audio_input_impl.h" | 5 #include "webkit/plugins/ppapi/ppb_audio_input_impl.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/shared_memory.h" | 10 #include "base/shared_memory.h" |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 } | 168 } |
| 169 | 169 |
| 170 void PPB_AudioInput_Impl::EnumerateDevicesCallbackFunc( | 170 void PPB_AudioInput_Impl::EnumerateDevicesCallbackFunc( |
| 171 int request_id, | 171 int request_id, |
| 172 bool succeeded, | 172 bool succeeded, |
| 173 const DeviceRefDataVector& devices) { | 173 const DeviceRefDataVector& devices) { |
| 174 devices_data_.clear(); | 174 devices_data_.clear(); |
| 175 if (succeeded) | 175 if (succeeded) |
| 176 devices_data_ = devices; | 176 devices_data_ = devices; |
| 177 | 177 |
| 178 PluginDelegate* plugin_delegate = ResourceHelper::GetPluginDelegate(this); |
| 179 if (plugin_delegate) |
| 180 plugin_delegate->StopEnumerateDevices(request_id); |
| 181 |
| 178 OnEnumerateDevicesComplete(succeeded ? PP_OK : PP_ERROR_FAILED, devices); | 182 OnEnumerateDevicesComplete(succeeded ? PP_OK : PP_ERROR_FAILED, devices); |
| 179 } | 183 } |
| 180 | 184 |
| 181 } // namespace ppapi | 185 } // namespace ppapi |
| 182 } // namespace webkit | 186 } // namespace webkit |
| OLD | NEW |