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

Unified Diff: remoting/protocol/stream_message_pipe_adapter.h

Issue 2757723002: Update ICE protocol to handle closed channel (Closed)
Patch Set: . Created 3 years, 9 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/message_reader_unittest.cc ('k') | remoting/protocol/stream_message_pipe_adapter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/stream_message_pipe_adapter.h
diff --git a/remoting/protocol/stream_message_pipe_adapter.h b/remoting/protocol/stream_message_pipe_adapter.h
index e7b45690049c32b552f5a373afe5a2610edb3ccd..aceaed135f25b7d2a498506df8178deb40384862 100644
--- a/remoting/protocol/stream_message_pipe_adapter.h
+++ b/remoting/protocol/stream_message_pipe_adapter.h
@@ -19,7 +19,7 @@ class P2PStreamSocket;
class StreamChannelFactory;
// MessagePipe implementation that sends and receives messages over a
-// P2PStreamChannel.
+// P2PStreamSocket.
class StreamMessagePipeAdapter : public MessagePipe {
public:
typedef base::Callback<void(int)> ErrorCallback;
@@ -36,10 +36,12 @@ class StreamMessagePipeAdapter : public MessagePipe {
private:
void CloseOnError(int error);
+ EventHandler* event_handler_ = nullptr;
+
std::unique_ptr<P2PStreamSocket> socket_;
ErrorCallback error_callback_;
- MessageReader reader_;
+ std::unique_ptr<MessageReader> reader_;
std::unique_ptr<BufferedSocketWriter> writer_;
DISALLOW_COPY_AND_ASSIGN(StreamMessagePipeAdapter);
« no previous file with comments | « remoting/protocol/message_reader_unittest.cc ('k') | remoting/protocol/stream_message_pipe_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698