diff options
author | ajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-28 00:12:27 +0000 |
---|---|---|
committer | ajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-28 00:12:27 +0000 |
commit | c26bc27eb94c6c938758df12409ceba27a45e67d (patch) | |
tree | e8726a4ee8558e683334e702e067868fbc9bcd8c /remoting/jingle_glue/ssl_adapter.cc | |
parent | 8a5bef943be8ec1654bcbb952b5b67c818f8900e (diff) | |
download | chromium_src-c26bc27eb94c6c938758df12409ceba27a45e67d.zip chromium_src-c26bc27eb94c6c938758df12409ceba27a45e67d.tar.gz chromium_src-c26bc27eb94c6c938758df12409ceba27a45e67d.tar.bz2 |
Fork a copy of all the notifier code in chrome/common/net/notifier that we depend on.
This breaks a cycle int the build dependencies so that we can keep moving forward on
Chromoting implementation.
BUG=none
TEST=compiles on mac/linux/win
Review URL: http://codereview.chromium.org/2843026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50959 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/jingle_glue/ssl_adapter.cc')
-rw-r--r-- | remoting/jingle_glue/ssl_adapter.cc | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/remoting/jingle_glue/ssl_adapter.cc b/remoting/jingle_glue/ssl_adapter.cc new file mode 100644 index 0000000..e22722f --- /dev/null +++ b/remoting/jingle_glue/ssl_adapter.cc @@ -0,0 +1,26 @@ +// 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 "remoting/jingle_glue/ssl_adapter.h" + +#if defined(OS_WIN) +#include "talk/base/ssladapter.h" +#else +#include "remoting/jingle_glue/ssl_socket_adapter.h" +#endif + +namespace remoting { + +talk_base::SSLAdapter* CreateSSLAdapter(talk_base::AsyncSocket* socket) { + talk_base::SSLAdapter* ssl_adapter = +#if defined(OS_WIN) + talk_base::SSLAdapter::Create(socket); +#else + remoting::SSLSocketAdapter::Create(socket); +#endif + DCHECK(ssl_adapter); + return ssl_adapter; +} + +} // namespace remoting |