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

Side by Side Diff: net/udp/udp_server_socket.h

Issue 690903002: Remove timing limitation of SetOption invocation for PPAPI sockets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
OLDNEW
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 #ifndef NET_SOCKET_UDP_SERVER_SOCKET_H_ 5 #ifndef NET_SOCKET_UDP_SERVER_SOCKET_H_
6 #define NET_SOCKET_UDP_SERVER_SOCKET_H_ 6 #define NET_SOCKET_UDP_SERVER_SOCKET_H_
7 7
8 #include "net/base/completion_callback.h" 8 #include "net/base/completion_callback.h"
9 #include "net/base/net_util.h" 9 #include "net/base/net_util.h"
10 #include "net/udp/datagram_server_socket.h" 10 #include "net/udp/datagram_server_socket.h"
(...skipping 19 matching lines...) Expand all
30 int SendTo(IOBuffer* buf, 30 int SendTo(IOBuffer* buf,
31 int buf_len, 31 int buf_len,
32 const IPEndPoint& address, 32 const IPEndPoint& address,
33 const CompletionCallback& callback) override; 33 const CompletionCallback& callback) override;
34 int SetReceiveBufferSize(int32 size) override; 34 int SetReceiveBufferSize(int32 size) override;
35 int SetSendBufferSize(int32 size) override; 35 int SetSendBufferSize(int32 size) override;
36 void Close() override; 36 void Close() override;
37 int GetPeerAddress(IPEndPoint* address) const override; 37 int GetPeerAddress(IPEndPoint* address) const override;
38 int GetLocalAddress(IPEndPoint* address) const override; 38 int GetLocalAddress(IPEndPoint* address) const override;
39 const BoundNetLog& NetLog() const override; 39 const BoundNetLog& NetLog() const override;
40 void AllowAddressReuse() override; 40 int AllowAddressReuse() override;
41 void AllowBroadcast() override; 41 int DisallowAddressReuse() override;
42 int AllowBroadcast() override;
43 int DisallowBroadcast() override;
42 int JoinGroup(const IPAddressNumber& group_address) const override; 44 int JoinGroup(const IPAddressNumber& group_address) const override;
43 int LeaveGroup(const IPAddressNumber& group_address) const override; 45 int LeaveGroup(const IPAddressNumber& group_address) const override;
44 int SetMulticastInterface(uint32 interface_index) override; 46 int SetMulticastInterface(uint32 interface_index) override;
45 int SetMulticastTimeToLive(int time_to_live) override; 47 int SetMulticastTimeToLive(int time_to_live) override;
46 int SetMulticastLoopbackMode(bool loopback) override; 48 int SetMulticastLoopbackMode(bool loopback) override;
47 int SetDiffServCodePoint(DiffServCodePoint dscp) override; 49 int SetDiffServCodePoint(DiffServCodePoint dscp) override;
48 void DetachFromThread() override; 50 void DetachFromThread() override;
49 51
50 private: 52 private:
51 UDPSocket socket_; 53 UDPSocket socket_;
52 DISALLOW_COPY_AND_ASSIGN(UDPServerSocket); 54 DISALLOW_COPY_AND_ASSIGN(UDPServerSocket);
53 }; 55 };
54 56
55 } // namespace net 57 } // namespace net
56 58
57 #endif // NET_SOCKET_UDP_SERVER_SOCKET_H_ 59 #endif // NET_SOCKET_UDP_SERVER_SOCKET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698