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

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: Reviewer feedback. Created 7 years, 7 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 cb64329a379091fa3388af10a9c596fef3c278b5..6ac9f785667208a4d29b84b43172bfa92d15ce41 100644
--- a/remoting/webapp/client_plugin_async.js
+++ b/remoting/webapp/client_plugin_async.js
@@ -171,6 +171,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