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

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

Issue 2443903004: Add xmllite and xmpp sources to third_party/ (Closed)
Patch Set: Explicitly use webrtc_overrides/webrtc/base/logging.h Created 3 years, 11 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
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 14 matching lines...) Expand all
25 #include "net/cert/multi_log_ct_verifier.h" 25 #include "net/cert/multi_log_ct_verifier.h"
26 #include "net/http/transport_security_state.h" 26 #include "net/http/transport_security_state.h"
27 #include "net/socket/client_socket_factory.h" 27 #include "net/socket/client_socket_factory.h"
28 #include "net/socket/client_socket_handle.h" 28 #include "net/socket/client_socket_handle.h"
29 #include "net/socket/ssl_client_socket.h" 29 #include "net/socket/ssl_client_socket.h"
30 #include "net/url_request/url_request_context_getter.h" 30 #include "net/url_request/url_request_context_getter.h"
31 #include "remoting/base/buffered_socket_writer.h" 31 #include "remoting/base/buffered_socket_writer.h"
32 #include "remoting/base/logging.h" 32 #include "remoting/base/logging.h"
33 #include "remoting/signaling/xmpp_login_handler.h" 33 #include "remoting/signaling/xmpp_login_handler.h"
34 #include "remoting/signaling/xmpp_stream_parser.h" 34 #include "remoting/signaling/xmpp_stream_parser.h"
35 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" 35 #include "third_party/libjingle_xmpp/xmllite/xmlelement.h"
36 36
37 // Use 50 seconds keep-alive interval, in case routers terminate 37 // Use 50 seconds keep-alive interval, in case routers terminate
38 // connections that are idle for more than a minute. 38 // connections that are idle for more than a minute.
39 const int kKeepAliveIntervalSeconds = 50; 39 const int kKeepAliveIntervalSeconds = 50;
40 40
41 const int kReadBufferSize = 4096; 41 const int kReadBufferSize = 4096;
42 42
43 const int kDefaultXmppPort = 5222; 43 const int kDefaultXmppPort = 5222;
44 const int kDefaultHttpsPort = 443; 44 const int kDefaultHttpsPort = 443;
45 45
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 std::string XmppSignalStrategy::GetNextId() { 550 std::string XmppSignalStrategy::GetNextId() {
551 return base::Uint64ToString(base::RandUint64()); 551 return base::Uint64ToString(base::RandUint64());
552 } 552 }
553 553
554 void XmppSignalStrategy::SetAuthInfo(const std::string& username, 554 void XmppSignalStrategy::SetAuthInfo(const std::string& username,
555 const std::string& auth_token) { 555 const std::string& auth_token) {
556 core_->SetAuthInfo(username, auth_token); 556 core_->SetAuthInfo(username, auth_token);
557 } 557 }
558 558
559 } // namespace remoting 559 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/signaling/xmpp_login_handler_unittest.cc ('k') | remoting/signaling/xmpp_signal_strategy_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698