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

Side by Side Diff: ppapi/proxy/tcp_socket_resource.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 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
« no previous file with comments | « ppapi/proxy/tcp_socket_private_resource.cc ('k') | ppapi/proxy/tcp_socket_resource.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_PROXY_TCP_SOCKET_RESOURCE_H_ 5 #ifndef PPAPI_PROXY_TCP_SOCKET_RESOURCE_H_
6 #define PPAPI_PROXY_TCP_SOCKET_RESOURCE_H_ 6 #define PPAPI_PROXY_TCP_SOCKET_RESOURCE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "ppapi/proxy/tcp_socket_resource_base.h" 10 #include "ppapi/proxy/tcp_socket_resource_base.h"
(...skipping 29 matching lines...) Expand all
40 int32_t bytes_to_read, 40 int32_t bytes_to_read,
41 scoped_refptr<TrackedCallback> callback) override; 41 scoped_refptr<TrackedCallback> callback) override;
42 virtual int32_t Write(const char* buffer, 42 virtual int32_t Write(const char* buffer,
43 int32_t bytes_to_write, 43 int32_t bytes_to_write,
44 scoped_refptr<TrackedCallback> callback) override; 44 scoped_refptr<TrackedCallback> callback) override;
45 virtual int32_t Listen(int32_t backlog, 45 virtual int32_t Listen(int32_t backlog,
46 scoped_refptr<TrackedCallback> callback) override; 46 scoped_refptr<TrackedCallback> callback) override;
47 virtual int32_t Accept(PP_Resource* accepted_tcp_socket, 47 virtual int32_t Accept(PP_Resource* accepted_tcp_socket,
48 scoped_refptr<TrackedCallback> callback) override; 48 scoped_refptr<TrackedCallback> callback) override;
49 virtual void Close() override; 49 virtual void Close() override;
50 virtual int32_t SetOption1_1(
51 PP_TCPSocket_Option name,
52 const PP_Var& value,
53 scoped_refptr<TrackedCallback> callback) override;
50 virtual int32_t SetOption(PP_TCPSocket_Option name, 54 virtual int32_t SetOption(PP_TCPSocket_Option name,
51 const PP_Var& value, 55 const PP_Var& value,
52 scoped_refptr<TrackedCallback> callback) override; 56 scoped_refptr<TrackedCallback> callback) override;
53 57
54 // TCPSocketResourceBase implementation. 58 // TCPSocketResourceBase implementation.
55 virtual PP_Resource CreateAcceptedSocket( 59 virtual PP_Resource CreateAcceptedSocket(
56 int pending_host_id, 60 int pending_host_id,
57 const PP_NetAddress_Private& local_addr, 61 const PP_NetAddress_Private& local_addr,
58 const PP_NetAddress_Private& remote_addr) override; 62 const PP_NetAddress_Private& remote_addr) override;
59 63
60 private: 64 private:
61 // C-tor used for accepted sockets. 65 // C-tor used for accepted sockets.
62 TCPSocketResource(Connection connection, 66 TCPSocketResource(Connection connection,
63 PP_Instance instance, 67 PP_Instance instance,
64 int pending_host_id, 68 int pending_host_id,
65 const PP_NetAddress_Private& local_addr, 69 const PP_NetAddress_Private& local_addr,
66 const PP_NetAddress_Private& remote_addr); 70 const PP_NetAddress_Private& remote_addr);
67 71
68 DISALLOW_COPY_AND_ASSIGN(TCPSocketResource); 72 DISALLOW_COPY_AND_ASSIGN(TCPSocketResource);
69 }; 73 };
70 74
71 } // namespace proxy 75 } // namespace proxy
72 } // namespace ppapi 76 } // namespace ppapi
73 77
74 #endif // PPAPI_PROXY_TCP_SOCKET_RESOURCE_H_ 78 #endif // PPAPI_PROXY_TCP_SOCKET_RESOURCE_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/tcp_socket_private_resource.cc ('k') | ppapi/proxy/tcp_socket_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698