Index: remoting/jingle_glue/xmpp_socket_adapter.cc |
diff --git a/jingle/notifier/communicator/xmpp_socket_adapter.cc b/remoting/jingle_glue/xmpp_socket_adapter.cc |
similarity index 97% |
rename from jingle/notifier/communicator/xmpp_socket_adapter.cc |
rename to remoting/jingle_glue/xmpp_socket_adapter.cc |
index 7d7a2e96e8d26f2fd6770080c30c2c0e5e7403bd..08f72aa10a8ec08d4f75948911514bdba8dc9dba 100644 |
--- a/jingle/notifier/communicator/xmpp_socket_adapter.cc |
+++ b/remoting/jingle_glue/xmpp_socket_adapter.cc |
@@ -2,14 +2,13 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "jingle/notifier/communicator/xmpp_socket_adapter.h" |
+#include "remoting/jingle_glue/xmpp_socket_adapter.h" |
#include <iomanip> |
#include <string> |
#include "base/logging.h" |
-#include "jingle/notifier/base/ssl_adapter.h" |
-#include "jingle/notifier/communicator/product_info.h" |
+#include "remoting/jingle_glue/ssl_adapter.h" |
#include "talk/base/byteorder.h" |
#include "talk/base/common.h" |
#include "talk/base/firewallsocketserver.h" |
@@ -19,7 +18,7 @@ |
#include "talk/base/thread.h" |
#include "talk/xmpp/xmppengine.h" |
-namespace notifier { |
+namespace remoting { |
XmppSocketAdapter::XmppSocketAdapter(const buzz::XmppClientSettings& xcs, |
bool allow_unverified_certs) |
@@ -111,7 +110,7 @@ bool XmppSocketAdapter::Connect(const talk_base::SocketAddress& addr) { |
} else { |
// Note: we are trying unknown proxies as HTTPS currently. |
proxy_socket = new talk_base::AsyncHttpsProxySocket(socket, |
- GetUserAgentString(), proxy_.address, proxy_.username, |
+ "chromoting", proxy_.address, proxy_.username, |
proxy_.password); |
} |
if (!proxy_socket) { |
@@ -134,7 +133,7 @@ bool XmppSocketAdapter::Connect(const talk_base::SocketAddress& addr) { |
} |
#if defined(FEATURE_ENABLE_SSL) |
- talk_base::SSLAdapter* ssl_adapter = notifier::CreateSSLAdapter(socket); |
+ talk_base::SSLAdapter* ssl_adapter = remoting::CreateSSLAdapter(socket); |
socket = ssl_adapter; // For our purposes the SSL adapter is the socket. |
#endif |
@@ -426,4 +425,4 @@ bool XmppSocketAdapter::HandleWritable() { |
return true; |
} |
-} // namespace notifier |
+} // namespace remoting |