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

Side by Side Diff: ppapi/thunk/ppb_udp_socket_api.h

Issue 704133005: Pepper: Add support for multicast in PPB_UDPSocket API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restore mistakenly removed lines Created 5 years, 10 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 PPAPI_THUNK_PPB_UDP_SOCKET_API_H_ 5 #ifndef PPAPI_THUNK_PPB_UDP_SOCKET_API_H_
6 #define PPAPI_THUNK_PPB_UDP_SOCKET_API_H_ 6 #define PPAPI_THUNK_PPB_UDP_SOCKET_API_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "ppapi/c/ppb_udp_socket.h" 9 #include "ppapi/c/ppb_udp_socket.h"
10 #include "ppapi/thunk/ppapi_thunk_export.h" 10 #include "ppapi/thunk/ppapi_thunk_export.h"
(...skipping 16 matching lines...) Expand all
27 PP_Resource* addr, 27 PP_Resource* addr,
28 scoped_refptr<TrackedCallback> callback) = 0; 28 scoped_refptr<TrackedCallback> callback) = 0;
29 virtual int32_t SendTo(const char* buffer, 29 virtual int32_t SendTo(const char* buffer,
30 int32_t num_bytes, 30 int32_t num_bytes,
31 PP_Resource addr, 31 PP_Resource addr,
32 scoped_refptr<TrackedCallback> callback) = 0; 32 scoped_refptr<TrackedCallback> callback) = 0;
33 virtual void Close() = 0; 33 virtual void Close() = 0;
34 virtual int32_t SetOption1_0(PP_UDPSocket_Option name, 34 virtual int32_t SetOption1_0(PP_UDPSocket_Option name,
35 const PP_Var& value, 35 const PP_Var& value,
36 scoped_refptr<TrackedCallback> callback) = 0; 36 scoped_refptr<TrackedCallback> callback) = 0;
37 virtual int32_t SetOption1_1(PP_UDPSocket_Option name,
38 const PP_Var& value,
39 scoped_refptr<TrackedCallback> callback) = 0;
37 virtual int32_t SetOption(PP_UDPSocket_Option name, 40 virtual int32_t SetOption(PP_UDPSocket_Option name,
38 const PP_Var& value, 41 const PP_Var& value,
39 scoped_refptr<TrackedCallback> callback) = 0; 42 scoped_refptr<TrackedCallback> callback) = 0;
43 virtual int32_t JoinGroup(PP_Resource group,
44 scoped_refptr<TrackedCallback> callback) = 0;
45 virtual int32_t LeaveGroup(PP_Resource group,
46 scoped_refptr<TrackedCallback> callback) = 0;
40 }; 47 };
41 48
42 } // namespace thunk 49 } // namespace thunk
43 } // namespace ppapi 50 } // namespace ppapi
44 51
45 #endif // PPAPI_THUNK_PPB_UDP_SOCKET_API_H_ 52 #endif // PPAPI_THUNK_PPB_UDP_SOCKET_API_H_
OLDNEW
« ppapi/tests/test_udp_socket.cc ('K') | « ppapi/tests/test_udp_socket.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698