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

Unified Diff: jingle/notifier/communicator/xmpp_socket_adapter.cc

Issue 3358028: Revert r59012 which started using Chrome sockets for sync. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « jingle/notifier/communicator/xmpp_socket_adapter.h ('k') | jingle/notifier/listener/mediator_thread_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: jingle/notifier/communicator/xmpp_socket_adapter.cc
diff --git a/remoting/jingle_glue/xmpp_socket_adapter.cc b/jingle/notifier/communicator/xmpp_socket_adapter.cc
similarity index 97%
rename from remoting/jingle_glue/xmpp_socket_adapter.cc
rename to jingle/notifier/communicator/xmpp_socket_adapter.cc
index 08f72aa10a8ec08d4f75948911514bdba8dc9dba..7d7a2e96e8d26f2fd6770080c30c2c0e5e7403bd 100644
--- a/remoting/jingle_glue/xmpp_socket_adapter.cc
+++ b/jingle/notifier/communicator/xmpp_socket_adapter.cc
@@ -2,13 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "remoting/jingle_glue/xmpp_socket_adapter.h"
+#include "jingle/notifier/communicator/xmpp_socket_adapter.h"
#include <iomanip>
#include <string>
#include "base/logging.h"
-#include "remoting/jingle_glue/ssl_adapter.h"
+#include "jingle/notifier/base/ssl_adapter.h"
+#include "jingle/notifier/communicator/product_info.h"
#include "talk/base/byteorder.h"
#include "talk/base/common.h"
#include "talk/base/firewallsocketserver.h"
@@ -18,7 +19,7 @@
#include "talk/base/thread.h"
#include "talk/xmpp/xmppengine.h"
-namespace remoting {
+namespace notifier {
XmppSocketAdapter::XmppSocketAdapter(const buzz::XmppClientSettings& xcs,
bool allow_unverified_certs)
@@ -110,7 +111,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,
- "chromoting", proxy_.address, proxy_.username,
+ GetUserAgentString(), proxy_.address, proxy_.username,
proxy_.password);
}
if (!proxy_socket) {
@@ -133,7 +134,7 @@ bool XmppSocketAdapter::Connect(const talk_base::SocketAddress& addr) {
}
#if defined(FEATURE_ENABLE_SSL)
- talk_base::SSLAdapter* ssl_adapter = remoting::CreateSSLAdapter(socket);
+ talk_base::SSLAdapter* ssl_adapter = notifier::CreateSSLAdapter(socket);
socket = ssl_adapter; // For our purposes the SSL adapter is the socket.
#endif
@@ -425,4 +426,4 @@ bool XmppSocketAdapter::HandleWritable() {
return true;
}
-} // namespace remoting
+} // namespace notifier
« no previous file with comments | « jingle/notifier/communicator/xmpp_socket_adapter.h ('k') | jingle/notifier/listener/mediator_thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698