| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "remoting/protocol/jingle_session.h" | 5 #include "remoting/protocol/jingle_session.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <limits> | 9 #include <limits> |
| 10 #include <utility> |
| 10 | 11 |
| 11 #include "base/bind.h" | 12 #include "base/bind.h" |
| 12 #include "base/rand_util.h" | 13 #include "base/rand_util.h" |
| 13 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
| 14 #include "base/stl_util.h" | 15 #include "base/stl_util.h" |
| 15 #include "base/strings/string_number_conversions.h" | 16 #include "base/strings/string_number_conversions.h" |
| 16 #include "base/thread_task_runner_handle.h" | 17 #include "base/thread_task_runner_handle.h" |
| 17 #include "base/time/time.h" | 18 #include "base/time/time.h" |
| 18 #include "remoting/base/constants.h" | 19 #include "remoting/base/constants.h" |
| 19 #include "remoting/protocol/authenticator.h" | 20 #include "remoting/protocol/authenticator.h" |
| (...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 602 } | 603 } |
| 603 } | 604 } |
| 604 | 605 |
| 605 bool JingleSession::is_session_active() { | 606 bool JingleSession::is_session_active() { |
| 606 return state_ == CONNECTING || state_ == ACCEPTING || state_ == ACCEPTED || | 607 return state_ == CONNECTING || state_ == ACCEPTING || state_ == ACCEPTED || |
| 607 state_ == AUTHENTICATING || state_ == AUTHENTICATED; | 608 state_ == AUTHENTICATING || state_ == AUTHENTICATED; |
| 608 } | 609 } |
| 609 | 610 |
| 610 } // namespace protocol | 611 } // namespace protocol |
| 611 } // namespace remoting | 612 } // namespace remoting |
| OLD | NEW |