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

Unified Diff: content/renderer/pepper/pepper_plugin_delegate_impl.cc

Issue 10837064: Corresponding change in Pepper since EnumerateDevices contract is changed. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: keep current Pepper API Created 8 years, 4 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/pepper/pepper_plugin_delegate_impl.h ('k') | webkit/plugins/ppapi/plugin_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/pepper_plugin_delegate_impl.cc
===================================================================
--- content/renderer/pepper/pepper_plugin_delegate_impl.cc (revision 149946)
+++ content/renderer/pepper/pepper_plugin_delegate_impl.cc (working copy)
@@ -1505,6 +1505,19 @@
return request_id;
}
+void PepperPluginDelegateImpl::StopEnumerateDevices(int request_id) {
+#if defined(ENABLE_WEBRTC)
+ // Need to post task since this function might be called inside the callback
+ // of EnumerateDevices.
+ MessageLoop::current()->PostTask(
+ FROM_HERE,
+ base::Bind(
+ &MediaStreamDispatcher::StopEnumerateDevices,
+ base::Unretained(render_view_->media_stream_dispatcher()),
+ request_id, device_enumeration_event_handler_.get()->AsWeakPtr()));
+#endif
+}
+
bool PepperPluginDelegateImpl::OnMessageReceived(const IPC::Message& message) {
bool handled = true;
IPC_BEGIN_MESSAGE_MAP(PepperPluginDelegateImpl, message)
« no previous file with comments | « content/renderer/pepper/pepper_plugin_delegate_impl.h ('k') | webkit/plugins/ppapi/plugin_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698