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

Side by Side Diff: remoting/signaling/xmpp_signal_strategy.cc

Issue 1736633002: remoting: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 unified diff | Download patch
« no previous file with comments | « remoting/signaling/xmpp_signal_strategy.h ('k') | remoting/test/connection_setup_info.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « remoting/signaling/xmpp_signal_strategy.h ('k') | remoting/test/connection_setup_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698