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

Unified Diff: chrome/renderer/media/webrtc_logging_message_filter.h

Issue 1123733002: [chrome/renderer/media] Replace MessageLoopProxy usage with ThreadTaskRunnerHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed nit Created 5 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: chrome/renderer/media/webrtc_logging_message_filter.h
diff --git a/chrome/renderer/media/webrtc_logging_message_filter.h b/chrome/renderer/media/webrtc_logging_message_filter.h
index bbc8ad3743270f933b5beb08ea8355548684775a..65f042faacbfa73eca8f29a5a11e88e8757734f2 100644
--- a/chrome/renderer/media/webrtc_logging_message_filter.h
+++ b/chrome/renderer/media/webrtc_logging_message_filter.h
@@ -5,13 +5,10 @@
#ifndef CHROME_RENDERER_MEDIA_WEBRTC_LOGGING_MESSAGE_FILTER_H_
#define CHROME_RENDERER_MEDIA_WEBRTC_LOGGING_MESSAGE_FILTER_H_
+#include "base/single_thread_task_runner.h"
#include "chrome/common/media/webrtc_logging_message_data.h"
#include "ipc/message_filter.h"
-namespace base {
-class MessageLoopProxy;
-}
-
class ChromeWebRtcLogMessageDelegate;
// Filter for WebRTC logging messages. Sits between
@@ -20,20 +17,20 @@ class ChromeWebRtcLogMessageDelegate;
class WebRtcLoggingMessageFilter : public IPC::MessageFilter {
public:
explicit WebRtcLoggingMessageFilter(
- const scoped_refptr<base::MessageLoopProxy>& io_message_loop);
+ const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner);
virtual void AddLogMessages(
const std::vector<WebRtcLoggingMessageData>& messages);
virtual void LoggingStopped();
- const scoped_refptr<base::MessageLoopProxy>& io_message_loop() {
- return io_message_loop_;
+ const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner() {
+ return io_task_runner_;
}
protected:
~WebRtcLoggingMessageFilter() override;
- scoped_refptr<base::MessageLoopProxy> io_message_loop_;
+ scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
// Owned by this class. The only other pointer to it is in libjingle's logging
// file. That's a global pointer used on different threads, so we will leak
« no previous file with comments | « chrome/renderer/media/mock_webrtc_logging_message_filter.cc ('k') | chrome/renderer/media/webrtc_logging_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698