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

Side by Side Diff: jingle/notifier/base/chrome_async_socket.cc

Issue 10309002: Reimplements net::AddressList without struct addrinfo. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: get_canonical_name -> canonical_name. iterator to indexing Created 8 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 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/chrome_async_socket.h" 5 #include "jingle/notifier/base/chrome_async_socket.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cstring> 8 #include <cstring>
9 #include <cstdlib> 9 #include <cstdlib>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "base/message_loop.h" 15 #include "base/message_loop.h"
16 #include "jingle/notifier/base/resolving_client_socket_factory.h" 16 #include "jingle/notifier/base/resolving_client_socket_factory.h"
17 #include "net/base/address_list.h" 17 #include "net/base/address_list.h"
18 #include "net/base/host_port_pair.h" 18 #include "net/base/host_port_pair.h"
19 #include "net/base/io_buffer.h" 19 #include "net/base/io_buffer.h"
20 #include "net/base/net_util.h" 20 #include "net/base/net_util.h"
21 #include "net/base/ssl_config_service.h" 21 #include "net/base/ssl_config_service.h"
22 #include "net/base/sys_addrinfo.h"
23 #include "net/socket/client_socket_factory.h" 22 #include "net/socket/client_socket_factory.h"
24 #include "net/socket/client_socket_handle.h" 23 #include "net/socket/client_socket_handle.h"
25 #include "net/socket/ssl_client_socket.h" 24 #include "net/socket/ssl_client_socket.h"
26 #include "net/socket/tcp_client_socket.h" 25 #include "net/socket/tcp_client_socket.h"
27 #include "talk/base/socketaddress.h" 26 #include "talk/base/socketaddress.h"
28 27
29 namespace notifier { 28 namespace notifier {
30 29
31 ChromeAsyncSocket::ChromeAsyncSocket( 30 ChromeAsyncSocket::ChromeAsyncSocket(
32 ResolvingClientSocketFactory* client_socket_factory, 31 ResolvingClientSocketFactory* client_socket_factory,
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 } 437 }
439 state_ = STATE_TLS_OPEN; 438 state_ = STATE_TLS_OPEN;
440 PostDoRead(); 439 PostDoRead();
441 if (write_end_ > 0U) { 440 if (write_end_ > 0U) {
442 PostDoWrite(); 441 PostDoWrite();
443 } 442 }
444 SignalSSLConnected(); 443 SignalSSLConnected();
445 } 444 }
446 445
447 } // namespace notifier 446 } // namespace notifier
OLDNEW
« no previous file with comments | « content/browser/renderer_host/pepper_message_filter.cc ('k') | jingle/notifier/communicator/xmpp_connection_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698