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

Unified Diff: remoting/host/me2me_desktop_environment.cc

Issue 15927033: Add host-side rate-limiting to desktop resize events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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
« no previous file with comments | « remoting/host/me2me_desktop_environment.h ('k') | remoting/host/resizing_host_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/me2me_desktop_environment.cc
diff --git a/remoting/host/me2me_desktop_environment.cc b/remoting/host/me2me_desktop_environment.cc
index 6f5526253025482c2a0da760c1614ad49b1fa3bf..71dc6b701a1eed9a4cb75e0f0a026ea93b03fafb 100644
--- a/remoting/host/me2me_desktop_environment.cc
+++ b/remoting/host/me2me_desktop_environment.cc
@@ -22,6 +22,8 @@
#include <unistd.h>
#endif // defined(OS_POSIX)
+const char kRateLimitResizeRequests[] = "rateLimitResizeRequests";
+
namespace remoting {
Me2MeDesktopEnvironment::~Me2MeDesktopEnvironment() {
@@ -47,6 +49,10 @@ Me2MeDesktopEnvironment::CreateVideoCapturer() {
#endif // !defined(OS_LINUX)
}
+std::string Me2MeDesktopEnvironment::GetCapabilities() const {
+ return kRateLimitResizeRequests;
+}
+
Me2MeDesktopEnvironment::Me2MeDesktopEnvironment(
scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> input_task_runner,
« no previous file with comments | « remoting/host/me2me_desktop_environment.h ('k') | remoting/host/resizing_host_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698