summaryrefslogtreecommitdiffstats
path: root/remoting/jingle_glue/ssl_adapter.h
diff options
context:
space:
mode:
authorakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-10 20:03:15 +0000
committerakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-10 20:03:15 +0000
commitf73e174dbd1fcd3ef9ca23dbe0a4e789068ee020 (patch)
treea6f7446f28a742d9b190fd78ee8276245d3bca8d /remoting/jingle_glue/ssl_adapter.h
parent833d617cffb3de3e90638d963a73aa7158b6843a (diff)
downloadchromium_src-f73e174dbd1fcd3ef9ca23dbe0a4e789068ee020.zip
chromium_src-f73e174dbd1fcd3ef9ca23dbe0a4e789068ee020.tar.gz
chromium_src-f73e174dbd1fcd3ef9ca23dbe0a4e789068ee020.tar.bz2
Removed use of XmppSocketAdapter by sync.
Moved XmppSocketAdapter and friends to remoting directory. Removed some dead code in jingle/. This is a relanding of 59012, which was mistakenly reverted at 59104. BUG=54146,55116 TEST=none TBR=willchan Review URL: http://codereview.chromium.org/3300030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59134 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/jingle_glue/ssl_adapter.h')
-rw-r--r--remoting/jingle_glue/ssl_adapter.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/remoting/jingle_glue/ssl_adapter.h b/remoting/jingle_glue/ssl_adapter.h
new file mode 100644
index 0000000..56b03be
--- /dev/null
+++ b/remoting/jingle_glue/ssl_adapter.h
@@ -0,0 +1,33 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef REMOTING_JINGLE_GLUE_SSL_ADAPTER_H_
+#define REMOTING_JINGLE_GLUE_SSL_ADAPTER_H_
+
+namespace talk_base {
+class AsyncSocket;
+class SSLAdapter;
+} // namespace talk_base
+
+namespace remoting {
+
+// Wraps the given socket in a platform-dependent SSLAdapter
+// implementation.
+talk_base::SSLAdapter* CreateSSLAdapter(talk_base::AsyncSocket* socket);
+
+// Utility template class that overrides CreateSSLAdapter() to use the
+// above function.
+template <class SocketFactory>
+class SSLAdapterSocketFactory : public SocketFactory {
+ public:
+ virtual talk_base::SSLAdapter* CreateSSLAdapter(
+ talk_base::AsyncSocket* socket) {
+ return ::remoting::CreateSSLAdapter(socket);
+ }
+};
+
+} // namespace remoting
+
+#endif // REMOTING_JINGLE_GLUE_SSL_ADAPTER_H_
+