#include "base/memory/weak_ptr.h"
#include "net/base/completion_callback.h"
#include "net/base/net_errors.h"
-#include "third_party/libjingle/source/talk/xmpp/asyncsocket.h"
+#include "third_party/webrtc/libjingle/xmpp/asyncsocket.h"
namespace net {
class IOBufferWithSize;
size_t write_buf_size);
// Does not raise any signals.
- virtual ~ChromeAsyncSocket();
+ ~ChromeAsyncSocket() override;
// buzz::AsyncSocket implementation.
// The current state (see buzz::AsyncSocket::State; all but
// STATE_CLOSING is used).
- virtual State state() OVERRIDE;
+ State state() override;
// The last generated error. Errors are generated when the main
// functions below return false or when SignalClosed is raised due
// to an asynchronous error.
- virtual Error error() OVERRIDE;
+ Error error() override;
// GetError() (which is of type net::Error) != net::OK only when
// error() == ERROR_WINSOCK.
- virtual int GetError() OVERRIDE;
+ int GetError() override;
// Tries to connect to the given address.
//
// Otherwise, starts the connection process and returns true.
// SignalConnected will be raised when the connection is successful;
// otherwise, SignalClosed will be raised with a net error set.
- virtual bool Connect(const rtc::SocketAddress& address) OVERRIDE;
+ bool Connect(const rtc::SocketAddress& address) override;
// Tries to read at most |len| bytes into |data|.
//
// case because StartTls() is called during a slot connected to
// SignalRead after parsing the final non-TLS reply from the server
// [see XmppClient::Private::OnSocketRead()].)
- virtual bool Read(char* data, size_t len, size_t* len_read) OVERRIDE;
+ bool Read(char* data, size_t len, size_t* len_read) override;
// Queues up |len| bytes of |data| for writing.
//
// Note that there's no guarantee that the data will actually be
// sent; however, it is guaranteed that the any data sent will be
// sent in FIFO order.
- virtual bool Write(const char* data, size_t len) OVERRIDE;
+ bool Write(const char* data, size_t len) override;
// If the socket is not already closed, closes the socket and raises
// SignalClosed. Always returns true.
- virtual bool Close() OVERRIDE;
+ bool Close() override;
// Tries to change to a TLS connection with the given domain name.
//
// SignalSSLConnected will be raised when the connection is
// successful; otherwise, SignalClosed will be raised with a net
// error set.
- virtual bool StartTls(const std::string& domain_name) OVERRIDE;
+ bool StartTls(const std::string& domain_name) override;
// Signal behavior:
//