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

Unified Diff: jingle/notifier/base/xmpp_client_socket_factory.cc

Issue 10817013: Move ChromeAsyncSocket to jingle/glue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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/base/xmpp_client_socket_factory.h ('k') | jingle/notifier/base/xmpp_connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: jingle/notifier/base/xmpp_client_socket_factory.cc
diff --git a/jingle/notifier/base/xmpp_client_socket_factory.cc b/jingle/notifier/base/xmpp_client_socket_factory.cc
deleted file mode 100644
index 259408492d39b5aec7c37d897cd88a900892867d..0000000000000000000000000000000000000000
--- a/jingle/notifier/base/xmpp_client_socket_factory.cc
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright (c) 2012 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/xmpp_client_socket_factory.h"
-
-#include "base/logging.h"
-#include "jingle/notifier/base/fake_ssl_client_socket.h"
-#include "jingle/notifier/base/proxy_resolving_client_socket.h"
-#include "net/socket/client_socket_factory.h"
-#include "net/socket/ssl_client_socket.h"
-#include "net/url_request/url_request_context.h"
-#include "net/url_request/url_request_context_getter.h"
-
-namespace notifier {
-
-XmppClientSocketFactory::XmppClientSocketFactory(
- net::ClientSocketFactory* client_socket_factory,
- const net::SSLConfig& ssl_config,
- const scoped_refptr<net::URLRequestContextGetter>& request_context_getter,
- bool use_fake_ssl_client_socket)
- : client_socket_factory_(client_socket_factory),
- request_context_getter_(request_context_getter),
- ssl_config_(ssl_config),
- use_fake_ssl_client_socket_(use_fake_ssl_client_socket) {
- CHECK(client_socket_factory_);
-}
-
-XmppClientSocketFactory::~XmppClientSocketFactory() {}
-
-net::StreamSocket* XmppClientSocketFactory::CreateTransportClientSocket(
- const net::HostPortPair& host_and_port) {
- // TODO(akalin): Use socket pools.
- net::StreamSocket* transport_socket = new ProxyResolvingClientSocket(
- NULL,
- request_context_getter_,
- ssl_config_,
- host_and_port);
- return (use_fake_ssl_client_socket_ ?
- new FakeSSLClientSocket(transport_socket) : transport_socket);
-}
-
-net::SSLClientSocket* XmppClientSocketFactory::CreateSSLClientSocket(
- net::ClientSocketHandle* transport_socket,
- const net::HostPortPair& host_and_port) {
- net::SSLClientSocketContext context;
- context.cert_verifier =
- request_context_getter_->GetURLRequestContext()->cert_verifier();
- // TODO(rkn): context.server_bound_cert_service is NULL because the
- // ServerBoundCertService class is not thread safe.
- return client_socket_factory_->CreateSSLClientSocket(
- transport_socket, host_and_port, ssl_config_, context);
-}
-
-
-} // namespace
« no previous file with comments | « jingle/notifier/base/xmpp_client_socket_factory.h ('k') | jingle/notifier/base/xmpp_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698