Add remoting::Session::State value for connected transport.

Previously remoting::Session was using CONNECTED state for when the
session has been accepted, but not connected. Renamed that state to
ACCEPTED and added new state CONNECTED for when the session is
authenticated and the transport is fully connected.

Review URL: https://codereview.chromium.org/1478583002

Cr-Commit-Position: refs/heads/master@{#362037}
diff --git a/remoting/protocol/jingle_session_unittest.cc b/remoting/protocol/jingle_session_unittest.cc
index d578712..8e0b557 100644
--- a/remoting/protocol/jingle_session_unittest.cc
+++ b/remoting/protocol/jingle_session_unittest.cc
@@ -201,7 +201,7 @@
       InSequence dummy;
 
       EXPECT_CALL(host_session_event_handler_,
-                  OnSessionStateChange(Session::CONNECTED))
+                  OnSessionStateChange(Session::ACCEPTED))
           .Times(AtMost(1));
       EXPECT_CALL(host_session_event_handler_,
                   OnSessionStateChange(Session::AUTHENTICATING))
@@ -225,7 +225,7 @@
       InSequence dummy;
 
       EXPECT_CALL(client_session_event_handler_,
-                  OnSessionStateChange(Session::CONNECTED))
+                  OnSessionStateChange(Session::ACCEPTED))
           .Times(AtMost(1));
       EXPECT_CALL(client_session_event_handler_,
                   OnSessionStateChange(Session::AUTHENTICATING))
@@ -449,7 +449,7 @@
           SetArgumentPointee<1>(protocol::SessionManager::ACCEPT)));
 
   EXPECT_CALL(host_session_event_handler_,
-      OnSessionStateChange(Session::CONNECTED))
+      OnSessionStateChange(Session::ACCEPTED))
       .Times(AtMost(1));
 
   EXPECT_CALL(host_session_event_handler_,
@@ -476,7 +476,7 @@
           SetArgumentPointee<1>(protocol::SessionManager::ACCEPT)));
 
   EXPECT_CALL(host_session_event_handler_,
-      OnSessionStateChange(Session::CONNECTED))
+      OnSessionStateChange(Session::ACCEPTED))
       .Times(AtMost(1));
 
   EXPECT_CALL(host_session_event_handler_,