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

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

Issue 15875005: Forwarding app URL to handler host for WebRTC logs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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.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
« no previous file with comments | « content/renderer/media/media_stream_dependency_factory.h ('k') | content/renderer/media/webrtc_logging_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698