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

Unified Diff: remoting/host/plugin/host_script_object.h

Issue 7547001: Propagate connected user to web app. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 9 years, 5 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/host/plugin/host_script_object.h
diff --git a/remoting/host/plugin/host_script_object.h b/remoting/host/plugin/host_script_object.h
index d836a42e33a659a13f1d6eca6ce9b13fab5dbaff..ef5b68748b20c6f9a8dca6d10d35bcc7f26dabc6 100644
--- a/remoting/host/plugin/host_script_object.h
+++ b/remoting/host/plugin/host_script_object.h
@@ -68,7 +68,10 @@ class HostNPScriptObject : public HostStatusObserver {
const std::string& full_jid) OVERRIDE;
virtual void OnSignallingDisconnected() OVERRIDE;
virtual void OnAccessDenied() OVERRIDE;
- virtual void OnAuthenticatedClientsChanged(int clients_connected) OVERRIDE;
+ virtual void OnClientAuthenticated(
+ remoting::protocol::ConnectionToClient* client) OVERRIDE;
+ virtual void OnClientDisconnected(
+ remoting::protocol::ConnectionToClient* client) OVERRIDE;
virtual void OnShutdown() OVERRIDE;
private:
@@ -128,6 +131,7 @@ class HostNPScriptObject : public HostStatusObserver {
NPObject* parent_;
int state_;
std::string access_code_;
+ std::string client_username_;
base::TimeDelta access_code_lifetime_;
NPObject* log_debug_info_func_;
NPObject* on_state_changed_func_;

Powered by Google App Engine
This is Rietveld 408576698