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

Unified Diff: remoting/webapp/client_plugin_async.js

Issue 15927033: Add host-side rate-limiting to desktop resize events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed ResizingHostObserver unit-tests. Created 7 years, 6 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/webapp/client_plugin_async.js
diff --git a/remoting/webapp/client_plugin_async.js b/remoting/webapp/client_plugin_async.js
index 8b60f3006d28938c0f8561fc445c6cc703a2e5c5..a4ac9ebdf92f02e64c0cbc0bd9dfedd272b009a6 100644
--- a/remoting/webapp/client_plugin_async.js
+++ b/remoting/webapp/client_plugin_async.js
@@ -172,6 +172,11 @@ remoting.ClientPluginAsync.prototype.handleMessage_ = function(messageStr) {
// the client's dimensions.
this.capabilities_.push(
remoting.ClientSession.Capability.SEND_INITIAL_RESOLUTION);
+
+ // Let the host know that we're interested in knowing whether or not
+ // it rate-limits desktop-resize requests.
+ this.capabilities_.push(
+ remoting.ClientSession.Capability.RATE_LIMIT_RESIZE_REQUESTS);
} else if (this.pluginApiVersion_ >= 6) {
this.pluginApiFeatures_ = ['highQualityScaling', 'injectKeyEvent'];
} else {

Powered by Google App Engine
This is Rietveld 408576698