| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/signaling/xmpp_signal_strategy.h" | 5 #include "remoting/signaling/xmpp_signal_strategy.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 net::ClientSocketFactory* socket_factory_; | 116 net::ClientSocketFactory* socket_factory_; |
| 117 scoped_refptr<net::URLRequestContextGetter> request_context_getter_; | 117 scoped_refptr<net::URLRequestContextGetter> request_context_getter_; |
| 118 XmppServerConfig xmpp_server_config_; | 118 XmppServerConfig xmpp_server_config_; |
| 119 | 119 |
| 120 // Used by the |socket_|. | 120 // Used by the |socket_|. |
| 121 std::unique_ptr<net::CertVerifier> cert_verifier_; | 121 std::unique_ptr<net::CertVerifier> cert_verifier_; |
| 122 std::unique_ptr<net::TransportSecurityState> transport_security_state_; | 122 std::unique_ptr<net::TransportSecurityState> transport_security_state_; |
| 123 | 123 |
| 124 std::unique_ptr<net::StreamSocket> socket_; | 124 std::unique_ptr<net::StreamSocket> socket_; |
| 125 std::unique_ptr<BufferedSocketWriter> writer_; | 125 std::unique_ptr<BufferedSocketWriter> writer_; |
| 126 int pending_writes_ = 0; | |
| 127 scoped_refptr<net::IOBuffer> read_buffer_; | 126 scoped_refptr<net::IOBuffer> read_buffer_; |
| 128 bool read_pending_ = false; | 127 bool read_pending_ = false; |
| 129 | 128 |
| 130 TlsState tls_state_ = TlsState::NOT_REQUESTED; | 129 TlsState tls_state_ = TlsState::NOT_REQUESTED; |
| 131 | 130 |
| 132 std::unique_ptr<XmppLoginHandler> login_handler_; | 131 std::unique_ptr<XmppLoginHandler> login_handler_; |
| 133 std::unique_ptr<XmppStreamParser> stream_parser_; | 132 std::unique_ptr<XmppStreamParser> stream_parser_; |
| 134 std::string jid_; | 133 std::string jid_; |
| 135 | 134 |
| 136 Error error_ = OK; | 135 Error error_ = OK; |
| (...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 534 std::string XmppSignalStrategy::GetNextId() { | 533 std::string XmppSignalStrategy::GetNextId() { |
| 535 return base::Uint64ToString(base::RandUint64()); | 534 return base::Uint64ToString(base::RandUint64()); |
| 536 } | 535 } |
| 537 | 536 |
| 538 void XmppSignalStrategy::SetAuthInfo(const std::string& username, | 537 void XmppSignalStrategy::SetAuthInfo(const std::string& username, |
| 539 const std::string& auth_token) { | 538 const std::string& auth_token) { |
| 540 core_->SetAuthInfo(username, auth_token); | 539 core_->SetAuthInfo(username, auth_token); |
| 541 } | 540 } |
| 542 | 541 |
| 543 } // namespace remoting | 542 } // namespace remoting |
| OLD | NEW |