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

Unified Diff: remoting/host/host_script_object.cc

Issue 7134023: Notify calling web-app when Host plugin becomes connected to a client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove blank line from rebase. Created 9 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/host_script_object.h ('k') | remoting/host/host_status_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/host_script_object.cc
diff --git a/remoting/host/host_script_object.cc b/remoting/host/host_script_object.cc
index dab16d1a0a5698387904fce1d78f70f8d2412939..0808066dfbb82330ec7df3e3ef188585f62a654a 100644
--- a/remoting/host/host_script_object.cc
+++ b/remoting/host/host_script_object.cc
@@ -283,6 +283,11 @@ void HostNPScriptObject::OnAccessDenied() {
DisconnectInternal();
}
+void HostNPScriptObject::OnAuthenticatedClientsChanged(int clients_connected) {
+ DCHECK_NE(base::PlatformThread::CurrentId(), np_thread_id_);
+ OnStateChanged(clients_connected ? kConnected : kDisconnected);
+}
+
void HostNPScriptObject::OnShutdown() {
DCHECK_EQ(MessageLoop::current(), host_context_.main_message_loop());
« no previous file with comments | « remoting/host/host_script_object.h ('k') | remoting/host/host_status_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698