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

Unified Diff: remoting/protocol/client_video_dispatcher.cc

Issue 841773005: Cleanup channel dispatchers (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
« no previous file with comments | « remoting/protocol/client_video_dispatcher.h ('k') | remoting/protocol/connection_to_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/client_video_dispatcher.cc
diff --git a/remoting/protocol/client_video_dispatcher.cc b/remoting/protocol/client_video_dispatcher.cc
index bca586c38d32aab8712cd59ed51718ec10af5582..287bba329cab9ee428d4a87b2a5f850499f27910 100644
--- a/remoting/protocol/client_video_dispatcher.cc
+++ b/remoting/protocol/client_video_dispatcher.cc
@@ -15,16 +15,13 @@ namespace protocol {
ClientVideoDispatcher::ClientVideoDispatcher(VideoStub* video_stub)
: ChannelDispatcherBase(kVideoChannelName),
- video_stub_(video_stub) {
+ parser_(base::Bind(&VideoStub::ProcessVideoPacket,
+ base::Unretained(video_stub)),
+ reader()) {
}
ClientVideoDispatcher::~ClientVideoDispatcher() {
}
-void ClientVideoDispatcher::OnInitialized() {
- reader_.Init(channel(), base::Bind(&VideoStub::ProcessVideoPacket,
- base::Unretained(video_stub_)));
-}
-
} // namespace protocol
} // namespace remoting
« no previous file with comments | « remoting/protocol/client_video_dispatcher.h ('k') | remoting/protocol/connection_to_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698