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

Side by Side Diff: ppapi/proxy/tcp_socket_private_resource.h

Issue 24195004: PPB_TCPSocket: add support for TCP server socket operations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « ppapi/proxy/resource_creation_proxy.cc ('k') | ppapi/proxy/tcp_socket_private_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_PRIVATE_RESOURCE_H_ 5 #ifndef PPAPI_PROXY_TCP_SOCKET_PRIVATE_RESOURCE_H_
6 #define PPAPI_PROXY_TCP_SOCKET_PRIVATE_RESOURCE_H_ 6 #define PPAPI_PROXY_TCP_SOCKET_PRIVATE_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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 int32_t bytes_to_read, 52 int32_t bytes_to_read,
53 scoped_refptr<TrackedCallback> callback) OVERRIDE; 53 scoped_refptr<TrackedCallback> callback) OVERRIDE;
54 virtual int32_t Write(const char* buffer, 54 virtual int32_t Write(const char* buffer,
55 int32_t bytes_to_write, 55 int32_t bytes_to_write,
56 scoped_refptr<TrackedCallback> callback) OVERRIDE; 56 scoped_refptr<TrackedCallback> callback) OVERRIDE;
57 virtual void Disconnect() OVERRIDE; 57 virtual void Disconnect() OVERRIDE;
58 virtual int32_t SetOption(PP_TCPSocketOption_Private name, 58 virtual int32_t SetOption(PP_TCPSocketOption_Private name,
59 const PP_Var& value, 59 const PP_Var& value,
60 scoped_refptr<TrackedCallback> callback) OVERRIDE; 60 scoped_refptr<TrackedCallback> callback) OVERRIDE;
61 61
62 // TCPSocketResourceBase implementation.
63 virtual PP_Resource CreateAcceptedSocket(
64 int pending_host_id,
65 const PP_NetAddress_Private& local_addr,
66 const PP_NetAddress_Private& remote_addr) OVERRIDE;
67
62 private: 68 private:
63 DISALLOW_COPY_AND_ASSIGN(TCPSocketPrivateResource); 69 DISALLOW_COPY_AND_ASSIGN(TCPSocketPrivateResource);
64 }; 70 };
65 71
66 } // namespace proxy 72 } // namespace proxy
67 } // namespace ppapi 73 } // namespace ppapi
68 74
69 #endif // PPAPI_PROXY_TCP_SOCKET_PRIVATE_RESOURCE_H_ 75 #endif // PPAPI_PROXY_TCP_SOCKET_PRIVATE_RESOURCE_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/resource_creation_proxy.cc ('k') | ppapi/proxy/tcp_socket_private_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698