| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "jingle/notifier/base/xmpp_connection.h" | 5 #include "jingle/notifier/base/xmpp_connection.h" |
| 6 | 6 |
| 7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/string_piece.h" | 10 #include "base/strings/string_piece.h" |
| 11 #include "jingle/glue/chrome_async_socket.h" | 11 #include "jingle/glue/chrome_async_socket.h" |
| 12 #include "jingle/glue/task_pump.h" | 12 #include "jingle/glue/task_pump.h" |
| 13 #include "jingle/glue/xmpp_client_socket_factory.h" | 13 #include "jingle/glue/xmpp_client_socket_factory.h" |
| 14 #include "jingle/notifier/base/weak_xmpp_client.h" | 14 #include "jingle/notifier/base/weak_xmpp_client.h" |
| 15 #include "net/socket/client_socket_factory.h" | 15 #include "net/socket/client_socket_factory.h" |
| 16 #include "net/ssl/ssl_config_service.h" | 16 #include "net/ssl/ssl_config_service.h" |
| 17 #include "net/url_request/url_request_context.h" | 17 #include "net/url_request/url_request_context.h" |
| 18 #include "talk/xmpp/xmppclientsettings.h" | 18 #include "talk/xmpp/xmppclientsettings.h" |
| 19 | 19 |
| 20 namespace notifier { | 20 namespace notifier { |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 } | 138 } |
| 139 | 139 |
| 140 void XmppConnection::ClearClient() { | 140 void XmppConnection::ClearClient() { |
| 141 if (weak_xmpp_client_.get()) { | 141 if (weak_xmpp_client_.get()) { |
| 142 weak_xmpp_client_->Invalidate(); | 142 weak_xmpp_client_->Invalidate(); |
| 143 DCHECK(!weak_xmpp_client_.get()); | 143 DCHECK(!weak_xmpp_client_.get()); |
| 144 } | 144 } |
| 145 } | 145 } |
| 146 | 146 |
| 147 } // namespace notifier | 147 } // namespace notifier |
| OLD | NEW |