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

Unified Diff: content/renderer/media/media_stream_dependency_factory.h

Issue 10947030: Removed the use of WebFrame::frameForCurrentContext() in MediaStreamCenter::didStopLocalMediaStream (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Addressing code review comments found by Tommi. Created 8 years, 3 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
Index: content/renderer/media/media_stream_dependency_factory.h
diff --git a/content/renderer/media/media_stream_dependency_factory.h b/content/renderer/media/media_stream_dependency_factory.h
index c46e8e2ccaf1679362d85fd3d917d364a5dc31f1..95d2ac9e3fa8df6ddd66b45c14d78e8c5267175b 100644
--- a/content/renderer/media/media_stream_dependency_factory.h
+++ b/content/renderer/media/media_stream_dependency_factory.h
@@ -11,6 +11,7 @@
#include "base/memory/ref_counted.h"
#include "base/threading/thread.h"
#include "content/common/content_export.h"
+#include "content/renderer/media/media_stream_extra_data.h"
#include "content/renderer/p2p/socket_dispatcher.h"
#include "third_party/libjingle/source/talk/app/webrtc/peerconnectioninterface.h"
@@ -41,8 +42,8 @@ class WebRTCPeerConnectionHandler;
class WebRTCPeerConnectionHandlerClient;
}
-class WebRtcAudioDeviceImpl;
class VideoCaptureImplManager;
+class WebRtcAudioDeviceImpl;
// Object factory for RTC MediaStreams and RTC PeerConnections.
class CONTENT_EXPORT MediaStreamDependencyFactory
@@ -64,10 +65,18 @@ class CONTENT_EXPORT MediaStreamDependencyFactory
WebKit::WebRTCPeerConnectionHandlerClient* client);
// Creates a libjingle representation of a MediaStream and stores
- // it in the extra data field of |description|
+ // it in the extra data field of |description|.
bool CreateNativeLocalMediaStream(
WebKit::WebMediaStreamDescriptor* description);
+ // Creates a libjingle representation of a MediaStream and stores
+ // it in the extra data field of |description|.
+ // |stream_stopped| a is callback that is run when a MediaStream have been
+ // stopped.
+ bool CreateNativeLocalMediaStream(
+ WebKit::WebMediaStreamDescriptor* description,
+ const MediaStreamExtraData::StreamStopCallback& stream_stop);
+
// Asks the libjingle PeerConnection factory to create a libjingle
// PeerConnection object.
// The PeerConnection object is owned by PeerConnectionHandler.
« no previous file with comments | « content/renderer/media/media_stream_center.cc ('k') | content/renderer/media/media_stream_dependency_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698