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

Unified Diff: remoting/protocol/channel_dispatcher_base.h

Issue 850983002: Implement video frame acknowledgements in the chromoting protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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: remoting/protocol/channel_dispatcher_base.h
diff --git a/remoting/protocol/channel_dispatcher_base.h b/remoting/protocol/channel_dispatcher_base.h
index 0c80b30c5a3758a82853be5338d64d323de05c4d..539213d8edffa9b2227362503cddfcf3c287797c 100644
--- a/remoting/protocol/channel_dispatcher_base.h
+++ b/remoting/protocol/channel_dispatcher_base.h
@@ -13,6 +13,7 @@
#include "remoting/protocol/buffered_socket_writer.h"
#include "remoting/protocol/errors.h"
#include "remoting/protocol/message_reader.h"
+#include "remoting/protocol/session_config.h"
namespace net {
class StreamSocket;
@@ -21,7 +22,6 @@ class StreamSocket;
namespace remoting {
namespace protocol {
-struct ChannelConfig;
class StreamChannelFactory;
class Session;
@@ -62,8 +62,12 @@ class ChannelDispatcherBase {
protected:
explicit ChannelDispatcherBase(const char* channel_name);
+ // Calls event_handler_->OnChannelError() with the supplied |error|.
+ void NotifyError(ErrorCode error);
+
BufferedSocketWriter* writer() { return &writer_; }
MessageReader* reader() { return &reader_; }
+ const ChannelConfig& channel_config() { return channel_config_; }
private:
void OnChannelReady(scoped_ptr<net::StreamSocket> socket);
@@ -71,6 +75,7 @@ class ChannelDispatcherBase {
std::string channel_name_;
StreamChannelFactory* channel_factory_;
+ ChannelConfig channel_config_;
EventHandler* event_handler_;
scoped_ptr<net::StreamSocket> channel_;

Powered by Google App Engine
This is Rietveld 408576698