diff options
author | ajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-30 02:30:44 +0000 |
---|---|---|
committer | ajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-30 02:30:44 +0000 |
commit | de4176698f43df498848c6f7caf9887373d37015 (patch) | |
tree | b6663107022e08d9e1ac66c8e78ef307f02e2a11 /jingle/notifier/base/ssl_adapter.cc | |
parent | 5a73f90320926dfe831325b8dbc27c791fa250ec (diff) | |
download | chromium_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.cc | 27 |
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 + |