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

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

Issue 1123733002: [chrome/renderer/media] Replace MessageLoopProxy usage with ThreadTaskRunnerHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding changes 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/chrome_webrtc_log_message_delegate.h
diff --git a/chrome/renderer/media/chrome_webrtc_log_message_delegate.h b/chrome/renderer/media/chrome_webrtc_log_message_delegate.h
index f8b37d2f98a6bd7ab48f0685799838f8dcf1e839..4a1792dcb03b104268a60643f119afe623bc5e92 100644
--- a/chrome/renderer/media/chrome_webrtc_log_message_delegate.h
+++ b/chrome/renderer/media/chrome_webrtc_log_message_delegate.h
@@ -8,14 +8,11 @@
#include <string>
#include "base/memory/shared_memory.h"
+#include "base/single_thread_task_runner.h"
xhwang 2015/05/05 16:01:58 forward declare?
anujsharma 2015/05/06 03:42:45 Done.
#include "chrome/common/media/webrtc_logging_message_data.h"
#include "content/public/renderer/webrtc_log_message_delegate.h"
#include "ipc/ipc_channel_proxy.h"
-namespace base {
-class MessageLoopProxy;
-}
-
class PartialCircularBuffer;
class WebRtcLoggingMessageFilter;
@@ -28,7 +25,7 @@ class ChromeWebRtcLogMessageDelegate
public base::NonThreadSafe {
public:
ChromeWebRtcLogMessageDelegate(
- const scoped_refptr<base::MessageLoopProxy>& io_message_loop,
+ const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner,
WebRtcLoggingMessageFilter* message_filter);
~ChromeWebRtcLogMessageDelegate() override;
@@ -45,7 +42,7 @@ class ChromeWebRtcLogMessageDelegate
void LogMessageOnIOThread(const WebRtcLoggingMessageData& message);
void SendLogBuffer();
- scoped_refptr<base::MessageLoopProxy> io_message_loop_;
+ scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
bool logging_started_;
std::vector<WebRtcLoggingMessageData> log_buffer_;

Powered by Google App Engine
This is Rietveld 408576698