Index: remoting/host/client_session.cc |
diff --git a/remoting/host/client_session.cc b/remoting/host/client_session.cc |
index 2f17ce854442ff00094337bff4ef41cca2e0ac7e..62aa056a455c6a72c7528d39104076764d584382 100644 |
--- a/remoting/host/client_session.cc |
+++ b/remoting/host/client_session.cc |
@@ -31,6 +31,10 @@ |
// Default DPI to assume for old clients that use notifyClientDimensions. |
const int kDefaultDPI = 96; |
+// All DesktopEnvironment implementations rate-limit desktop resize requests, |
+// so this Capability is added automatically. |
+const char kRateLimitResizeRequests[] = "rateLimitResizeRequests"; |
+ |
namespace remoting { |
ClientSession::ClientSession( |
@@ -211,6 +215,7 @@ void ClientSession::OnConnectionAuthenticated( |
} |
host_capabilities_ = desktop_environment_->GetCapabilities(); |
+ host_capabilities_ = host_capabilities_ + " " + kRateLimitResizeRequests; |
Jamie
2013/06/04 01:27:49
Is this an acceptable way of getting the capabilit
alexeypa (please no reviews)
2013/06/04 17:07:37
No, I don't think we should do it this way. I thin
Jamie
2013/06/04 21:18:03
Done. However, see my comments below.
|
// Ignore protocol::Capabilities messages from the client if it does not |
// support any capabilities. |