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

Unified Diff: remoting/host/session_manager.cc

Issue 4476003: Add VideoPacket struct for video packets. Refactor Decode interface to use it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed compilation on windows and mac Created 10 years, 1 month 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/host/session_manager.cc
diff --git a/remoting/host/session_manager.cc b/remoting/host/session_manager.cc
index b9726a725844e76012c73524c8c9e467876ff09f..6741905e7f35d3ed0ef5f5194f21955a97c7f397 100644
--- a/remoting/host/session_manager.cc
+++ b/remoting/host/session_manager.cc
@@ -11,6 +11,7 @@
#include "base/stl_util-inl.h"
#include "remoting/base/capture_data.h"
#include "remoting/base/tracer.h"
+#include "remoting/proto/video.pb.h"
#include "remoting/protocol/connection_to_client.h"
#include "remoting/protocol/message_decoder.h"
@@ -253,15 +254,7 @@ void SessionManager::DoGetInitInfo(
ScopedTracer tracer("init");
- // Sends the init message to the connection.
- network_loop_->PostTask(
- FROM_HERE,
- NewTracedMethod(this, &SessionManager::DoSendInit, connection,
- capturer()->width(), capturer()->height()));
-
- // And then add the connection to the list so it can receive update stream.
- // It is important we do so in such order or the connection will receive
- // update stream before init message.
+ // Add the client to the list so it can receive update stream.
network_loop_->PostTask(
FROM_HERE,
NewTracedMethod(this, &SessionManager::DoAddClient, connection));
@@ -347,14 +340,6 @@ void SessionManager::DoSendVideoPacket(VideoPacket* packet) {
TraceContext::tracer()->PrintString("DoSendUpdate done");
}
-void SessionManager::DoSendInit(scoped_refptr<ConnectionToClient> connection,
- int width, int height) {
- DCHECK_EQ(network_loop_, MessageLoop::current());
-
- // Sends the connection init information.
- connection->SendInitClientMessage(width, height);
-}
-
void SessionManager::DoAddClient(scoped_refptr<ConnectionToClient> connection) {
DCHECK_EQ(network_loop_, MessageLoop::current());

Powered by Google App Engine
This is Rietveld 408576698