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

Unified Diff: remoting/protocol/session.h

Issue 205583011: [Draft] Fix canceling pin prompt causes host overload (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add unittest to chromoting_host and jingle_session Created 6 years, 9 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/protocol/session.h
diff --git a/remoting/protocol/session.h b/remoting/protocol/session.h
index a542283001e6ced5fbb0359d11895c9a2442d9cd..232a1d04bf6fc4c91de4958b7b6e63a2e950b291 100644
--- a/remoting/protocol/session.h
+++ b/remoting/protocol/session.h
@@ -38,6 +38,9 @@ class Session {
// Session has been accepted and is pending authentication.
CONNECTED,
+ // Session has started authenticating.
+ AUTHENTICATING,
+
// Session has been connected and authenticated.
AUTHENTICATED,
@@ -54,8 +57,8 @@ class Session {
virtual ~EventHandler() {}
// Called after session state has changed. It is safe to destroy
- // the session from within the handler if |state| is CLOSED or
- // FAILED.
+ // the session from within the handler if |state| is AUTHENTICATING
+ // or CLOSED or FAILED.
virtual void OnSessionStateChange(State state) = 0;
// Called whenever route for the channel specified with

Powered by Google App Engine
This is Rietveld 408576698