summaryrefslogtreecommitdiffstats
path: root/jingle/notifier/base/ssl_adapter.cc
diff options
context:
space:
mode:
authorajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-30 02:30:44 +0000
committerajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-30 02:30:44 +0000
commitde4176698f43df498848c6f7caf9887373d37015 (patch)
treeb6663107022e08d9e1ac66c8e78ef307f02e2a11 /jingle/notifier/base/ssl_adapter.cc
parent5a73f90320926dfe831325b8dbc27c791fa250ec (diff)
downloadchromium_src-de4176698f43df498848c6f7caf9887373d37015.zip
chromium_src-de4176698f43df498848c6f7caf9887373d37015.tar.gz
chromium_src-de4176698f43df498848c6f7caf9887373d37015.tar.bz2
Move chrome/common/net/notifier to jingle/notifier so that it can be used by remoting/remoting.gyp.
BUG=none TEST=compiles Review URL: http://codereview.chromium.org/2885005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51216 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'jingle/notifier/base/ssl_adapter.cc')
-rw-r--r--jingle/notifier/base/ssl_adapter.cc27
1 files changed, 27 insertions, 0 deletions
diff --git a/jingle/notifier/base/ssl_adapter.cc b/jingle/notifier/base/ssl_adapter.cc
new file mode 100644
index 0000000..2111244
--- /dev/null
+++ b/jingle/notifier/base/ssl_adapter.cc
@@ -0,0 +1,27 @@
+// 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.
+
+#include "jingle/notifier/base/ssl_adapter.h"
+
+#if defined(OS_WIN)
+#include "talk/base/ssladapter.h"
+#else
+#include "jingle/notifier/communicator/ssl_socket_adapter.h"
+#endif
+
+namespace notifier {
+
+talk_base::SSLAdapter* CreateSSLAdapter(talk_base::AsyncSocket* socket) {
+ talk_base::SSLAdapter* ssl_adapter =
+#if defined(OS_WIN)
+ talk_base::SSLAdapter::Create(socket);
+#else
+ notifier::SSLSocketAdapter::Create(socket);
+#endif
+ DCHECK(ssl_adapter);
+ return ssl_adapter;
+}
+
+} // namespace notifier
+