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

Unified Diff: remoting/protocol/connection_tester.h

Issue 2104363004: Remove remaining calls to deprecated MessageLoop methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CR gab Created 4 years, 5 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
« no previous file with comments | « remoting/protocol/channel_multiplexer_unittest.cc ('k') | remoting/protocol/connection_tester.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/connection_tester.h
diff --git a/remoting/protocol/connection_tester.h b/remoting/protocol/connection_tester.h
index 4fbf33891c6cd11028a444a0b3becff62c4dcce6..eda98b4e8ee0743ae8b0033fd8a99c5c14755d2d 100644
--- a/remoting/protocol/connection_tester.h
+++ b/remoting/protocol/connection_tester.h
@@ -11,10 +11,7 @@
#include "base/memory/ref_counted.h"
#include "base/run_loop.h"
-
-namespace base {
-class MessageLoop;
-} // namespace base
+#include "base/single_thread_task_runner.h"
namespace net {
class DrainableIOBuffer;
@@ -59,7 +56,7 @@ class StreamConnectionTester {
void HandleReadResult(int result);
private:
- base::MessageLoop* message_loop_;
+ const scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
P2PStreamSocket* host_socket_;
P2PStreamSocket* client_socket_;
int message_size_;
@@ -94,7 +91,7 @@ class DatagramConnectionTester {
void OnRead(int result);
void HandleReadResult(int result);
- base::MessageLoop* message_loop_;
+ const scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
P2PDatagramSocket* host_socket_;
P2PDatagramSocket* client_socket_;
int message_size_;
« no previous file with comments | « remoting/protocol/channel_multiplexer_unittest.cc ('k') | remoting/protocol/connection_tester.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698