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

Unified Diff: remoting/host/chromoting_host.h

Issue 7635005: Properly handle screen recorder shutdown in ChromotingHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 4 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 | « no previous file | remoting/host/chromoting_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/chromoting_host.h
diff --git a/remoting/host/chromoting_host.h b/remoting/host/chromoting_host.h
index fb26aec8d349a36232596348a62d61012abe0ea1..bb9e80ed2df6b98a03bd9dee7d83d3641f2bc884 100644
--- a/remoting/host/chromoting_host.h
+++ b/remoting/host/chromoting_host.h
@@ -182,6 +182,9 @@ class ChromotingHost : public base::RefCountedThreadSafe<ChromotingHost>,
void ProcessPreAuthentication(
const scoped_refptr<protocol::ConnectionToClient>& connection);
+ void StopScreenRecorder();
+ void OnScreenRecorderStopped();
+
// The following methods are called during shutdown.
void ShutdownNetwork();
void ShutdownRecorder();
@@ -212,6 +215,12 @@ class ChromotingHost : public base::RefCountedThreadSafe<ChromotingHost>,
// and read by jingle thread.
State state_;
+ // Number of screen recorders that are currently being
+ // stopped. Normally set to 0 or 1, but in some cases it may be
+ // greater than 1, particularly if when second client can connect
+ // immidiately after previous one disconnected.
+ int stopping_recorders_;
+
// Lock is to lock the access to |state_|.
base::Lock lock_;
« no previous file with comments | « no previous file | remoting/host/chromoting_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698