diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-01-04 14:17:57 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-01-05 10:05:06 +0000 |
commit | 39d357e3248f80abea0159765ff39554affb40db (patch) | |
tree | aba0e6bfb76de0244bba0f5fdbd64b830dd6e621 /chromium/net/udp/datagram_socket.h | |
parent | 87778abf5a1f89266f37d1321b92a21851d8244d (diff) | |
download | qtwebengine-chromium-39d357e3248f80abea0159765ff39554affb40db.tar.gz |
BASELINE: Update Chromium to 55.0.2883.105
And updates ninja to 1.7.2
Change-Id: I20d43c737f82764d857ada9a55586901b18b9243
Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'chromium/net/udp/datagram_socket.h')
-rw-r--r-- | chromium/net/udp/datagram_socket.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/chromium/net/udp/datagram_socket.h b/chromium/net/udp/datagram_socket.h index f0e9fa10baa..88f4b999ea6 100644 --- a/chromium/net/udp/datagram_socket.h +++ b/chromium/net/udp/datagram_socket.h @@ -9,8 +9,8 @@ namespace net { -class BoundNetLog; class IPEndPoint; +class NetLogWithSource; // A datagram socket is an interface to a protocol which exchanges // datagrams, like UDP. @@ -34,8 +34,19 @@ class NET_EXPORT_PRIVATE DatagramSocket { // (similar to getsockname) virtual int GetLocalAddress(IPEndPoint* address) const = 0; + // Switch to use non-blocking IO. Must be called right after construction and + // before other calls. + virtual void UseNonBlockingIO() = 0; + + // Requests that packets sent by this socket not be fragment, either locally + // by the host, or by routers (via the DF bit in the IPv4 packet header). + // May not be supported by all platforms. Returns a return a network error + // code if there was a problem, but the socket will still be usable. Can not + // return ERR_IO_PENDING. + virtual int SetDoNotFragment() = 0; + // Gets the NetLog for this socket. - virtual const BoundNetLog& NetLog() const = 0; + virtual const NetLogWithSource& NetLog() const = 0; }; } // namespace net |