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 28 matching lines...) Expand all Loading... |
39 | 39 |
40 const int kDefaultXmppPort = 5222; | 40 const int kDefaultXmppPort = 5222; |
41 const int kDefaultHttpsPort = 443; | 41 const int kDefaultHttpsPort = 443; |
42 | 42 |
43 namespace remoting { | 43 namespace remoting { |
44 | 44 |
45 XmppSignalStrategy::XmppServerConfig::XmppServerConfig() | 45 XmppSignalStrategy::XmppServerConfig::XmppServerConfig() |
46 : port(kDefaultXmppPort), use_tls(true) { | 46 : port(kDefaultXmppPort), use_tls(true) { |
47 } | 47 } |
48 | 48 |
| 49 XmppSignalStrategy::XmppServerConfig::XmppServerConfig( |
| 50 const XmppServerConfig& other) = default; |
| 51 |
49 XmppSignalStrategy::XmppServerConfig::~XmppServerConfig() { | 52 XmppSignalStrategy::XmppServerConfig::~XmppServerConfig() { |
50 } | 53 } |
51 | 54 |
52 class XmppSignalStrategy::Core : public XmppLoginHandler::Delegate { | 55 class XmppSignalStrategy::Core : public XmppLoginHandler::Delegate { |
53 public: | 56 public: |
54 Core( | 57 Core( |
55 net::ClientSocketFactory* socket_factory, | 58 net::ClientSocketFactory* socket_factory, |
56 const scoped_refptr<net::URLRequestContextGetter>& request_context_getter, | 59 const scoped_refptr<net::URLRequestContextGetter>& request_context_getter, |
57 const XmppServerConfig& xmpp_server_config); | 60 const XmppServerConfig& xmpp_server_config); |
58 ~Core() override; | 61 ~Core() override; |
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 std::string XmppSignalStrategy::GetNextId() { | 533 std::string XmppSignalStrategy::GetNextId() { |
531 return base::Uint64ToString(base::RandUint64()); | 534 return base::Uint64ToString(base::RandUint64()); |
532 } | 535 } |
533 | 536 |
534 void XmppSignalStrategy::SetAuthInfo(const std::string& username, | 537 void XmppSignalStrategy::SetAuthInfo(const std::string& username, |
535 const std::string& auth_token) { | 538 const std::string& auth_token) { |
536 core_->SetAuthInfo(username, auth_token); | 539 core_->SetAuthInfo(username, auth_token); |
537 } | 540 } |
538 | 541 |
539 } // namespace remoting | 542 } // namespace remoting |
OLD | NEW |