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

Side by Side Diff: ppapi/cpp/private/flash_udp_socket.h

Issue 7745005: Initial work for UDP Pepper API (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: add some error case logic, remove remaining warnings... Created 9 years, 3 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
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef PPAPI_CPP_PRIVATE_FLASH_UDP_SOCKET_H_
6 #define PPAPI_CPP_PRIVATE_FLASH_UDP_SOCKET_H_
7
8 #include "ppapi/c/pp_stdint.h"
9 #include "ppapi/c/private/ppb_flash_udp_socket.h"
10 #include "ppapi/cpp/resource.h"
11
12 namespace pp {
13
14 class CompletionCallback;
15 class Instance;
16
17 namespace flash {
18
19 class UDPSocket : public Resource {
20 public:
21 explicit UDPSocket(Instance* instance, int32_t family);
22
23 int32_t Bind(const PP_Flash_NetAddress* addr,
24 const CompletionCallback& callback);
25 int32_t RecvFrom(char* buffer,
26 int32_t num_bytes,
27 const PP_Flash_NetAddress* addr,
28 const CompletionCallback& callback);
29 bool GetRecvFromAddress(PP_Flash_NetAddress* addr);
30 int32_t SendTo(const char* buffer,
31 int32_t num_bytes,
32 const PP_Flash_NetAddress* addr,
33 const CompletionCallback& callback);
34 void Disconnect();
35 };
36
37 } // namespace flash
38 } // namespace pp
39
40 #endif // PPAPI_CPP_PRIVATE_FLASH_UDP_SOCKET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698