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

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

Issue 17314012: Move PPB_TCPSocket out of dev. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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
« no previous file with comments | « ppapi/thunk/interfaces_ppb_public_stable.h ('k') | ppapi/thunk/ppb_tcp_socket_dev_thunk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_TCP_SOCKET_API_H_ 5 #ifndef PPAPI_THUNK_PPB_TCP_SOCKET_API_H_
6 #define PPAPI_THUNK_PPB_TCP_SOCKET_API_H_ 6 #define PPAPI_THUNK_PPB_TCP_SOCKET_API_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "ppapi/c/dev/ppb_tcp_socket_dev.h" 9 #include "ppapi/c/ppb_tcp_socket.h"
10 #include "ppapi/thunk/ppapi_thunk_export.h" 10 #include "ppapi/thunk/ppapi_thunk_export.h"
11 11
12 namespace ppapi { 12 namespace ppapi {
13 13
14 class TrackedCallback; 14 class TrackedCallback;
15 15
16 namespace thunk { 16 namespace thunk {
17 17
18 class PPAPI_THUNK_EXPORT PPB_TCPSocket_API { 18 class PPAPI_THUNK_EXPORT PPB_TCPSocket_API {
19 public: 19 public:
20 virtual ~PPB_TCPSocket_API() {} 20 virtual ~PPB_TCPSocket_API() {}
21 21
22 virtual int32_t Connect(PP_Resource addr, 22 virtual int32_t Connect(PP_Resource addr,
23 scoped_refptr<TrackedCallback> callback) = 0; 23 scoped_refptr<TrackedCallback> callback) = 0;
24 virtual PP_Resource GetLocalAddress() = 0; 24 virtual PP_Resource GetLocalAddress() = 0;
25 virtual PP_Resource GetRemoteAddress() = 0; 25 virtual PP_Resource GetRemoteAddress() = 0;
26 virtual int32_t Read(char* buffer, 26 virtual int32_t Read(char* buffer,
27 int32_t bytes_to_read, 27 int32_t bytes_to_read,
28 scoped_refptr<TrackedCallback> callback) = 0; 28 scoped_refptr<TrackedCallback> callback) = 0;
29 virtual int32_t Write(const char* buffer, 29 virtual int32_t Write(const char* buffer,
30 int32_t bytes_to_write, 30 int32_t bytes_to_write,
31 scoped_refptr<TrackedCallback> callback) = 0; 31 scoped_refptr<TrackedCallback> callback) = 0;
32 virtual void Close() = 0; 32 virtual void Close() = 0;
33 virtual int32_t SetOption(PP_TCPSocket_Option_Dev name, 33 virtual int32_t SetOption(PP_TCPSocket_Option name,
34 const PP_Var& value, 34 const PP_Var& value,
35 scoped_refptr<TrackedCallback> callback) = 0; 35 scoped_refptr<TrackedCallback> callback) = 0;
36 }; 36 };
37 37
38 } // namespace thunk 38 } // namespace thunk
39 } // namespace ppapi 39 } // namespace ppapi
40 40
41 #endif // PPAPI_THUNK_PPB_TCP_SOCKET_API_H_ 41 #endif // PPAPI_THUNK_PPB_TCP_SOCKET_API_H_
OLDNEW
« no previous file with comments | « ppapi/thunk/interfaces_ppb_public_stable.h ('k') | ppapi/thunk/ppb_tcp_socket_dev_thunk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698