Chromium Code Reviews| Index: content/renderer/media/media_stream_dependency_factory.cc |
| diff --git a/content/renderer/media/media_stream_dependency_factory.cc b/content/renderer/media/media_stream_dependency_factory.cc |
| index 5b9d022dc7977dbc17c33ac3f5233c7f22b51114..5d71c616bbddb0c4939f8fe5da779fbd5846b99c 100644 |
| --- a/content/renderer/media/media_stream_dependency_factory.cc |
| +++ b/content/renderer/media/media_stream_dependency_factory.cc |
| @@ -30,6 +30,8 @@ |
| #include "third_party/WebKit/Source/Platform/chromium/public/WebMediaStream.h" |
| #include "third_party/WebKit/Source/Platform/chromium/public/WebMediaStreamSource.h" |
| #include "third_party/WebKit/Source/Platform/chromium/public/WebMediaStreamTrack.h" |
| +#include "third_party/WebKit/Source/Platform/chromium/public/WebURL.h" |
| +#include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
| #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
| #if defined(USE_OPENSSL) |
| @@ -508,13 +510,15 @@ MediaStreamDependencyFactory::CreatePeerConnection( |
| optional_constraints.FindFirst(kWebRtcLoggingConstraint, |
| &constraint_value)) { |
| webrtc_log_open_ = true; |
| + std::string url = web_frame->document().url().spec().data(); |
|
tommi (sloooow) - chröme
2013/05/25 11:44:04
why call data()? using std::string's copy constru
Henrik Grunell
2013/05/27 11:21:50
That's totally unnecessary, I just didn't notice t
tommi (sloooow) - chröme
2013/05/27 11:33:33
Sorry, I actually thought I was looking at a GURL
|
| RenderThreadImpl::current()->GetIOMessageLoopProxy()->PostTask( |
| FROM_HERE, base::Bind( |
| &MediaStreamDependencyFactory::CreateWebRtcLoggingHandler, |
| base::Unretained(this), |
| RenderThreadImpl::current()->webrtc_logging_message_filter(), |
| - constraint_value)); |
| + constraint_value, |
| + url)); |
| } |
| scoped_refptr<P2PPortAllocatorFactory> pa_factory = |
| @@ -789,10 +793,11 @@ void MediaStreamDependencyFactory::CleanupPeerConnectionFactory() { |
| void MediaStreamDependencyFactory::CreateWebRtcLoggingHandler( |
| WebRtcLoggingMessageFilter* filter, |
| - const std::string& app_session_id) { |
| + const std::string& app_session_id, |
| + const std::string& app_url) { |
| WebRtcLoggingHandlerImpl* handler = |
| new WebRtcLoggingHandlerImpl(filter->io_message_loop()); |
| - filter->InitLogging(handler, app_session_id); |
| + filter->InitLogging(handler, app_session_id, app_url); |
| } |
| } // namespace content |