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

Side by Side Diff: ppapi/thunk/ppb_tcp_socket_api.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: Rebase and fixed implementation. Created 6 years 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_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/ppb_tcp_socket.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"
(...skipping 18 matching lines...) Expand all
29 int32_t bytes_to_read, 29 int32_t bytes_to_read,
30 scoped_refptr<TrackedCallback> callback) = 0; 30 scoped_refptr<TrackedCallback> callback) = 0;
31 virtual int32_t Write(const char* buffer, 31 virtual int32_t Write(const char* buffer,
32 int32_t bytes_to_write, 32 int32_t bytes_to_write,
33 scoped_refptr<TrackedCallback> callback) = 0; 33 scoped_refptr<TrackedCallback> callback) = 0;
34 virtual int32_t Listen(int32_t backlog, 34 virtual int32_t Listen(int32_t backlog,
35 scoped_refptr<TrackedCallback> callback) = 0; 35 scoped_refptr<TrackedCallback> callback) = 0;
36 virtual int32_t Accept(PP_Resource* accepted_tcp_socket, 36 virtual int32_t Accept(PP_Resource* accepted_tcp_socket,
37 scoped_refptr<TrackedCallback> callback) = 0; 37 scoped_refptr<TrackedCallback> callback) = 0;
38 virtual void Close() = 0; 38 virtual void Close() = 0;
39 virtual int32_t SetOption1_1(PP_TCPSocket_Option name,
40 const PP_Var& value,
41 scoped_refptr<TrackedCallback> callback) = 0;
39 virtual int32_t SetOption(PP_TCPSocket_Option name, 42 virtual int32_t SetOption(PP_TCPSocket_Option name,
40 const PP_Var& value, 43 const PP_Var& value,
41 scoped_refptr<TrackedCallback> callback) = 0; 44 scoped_refptr<TrackedCallback> callback) = 0;
42 }; 45 };
43 46
44 } // namespace thunk 47 } // namespace thunk
45 } // namespace ppapi 48 } // namespace ppapi
46 49
47 #endif // PPAPI_THUNK_PPB_TCP_SOCKET_API_H_ 50 #endif // PPAPI_THUNK_PPB_TCP_SOCKET_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698