OLD | NEW |
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_BASE_H_ | 5 #ifndef PPAPI_PROXY_TCP_SOCKET_RESOURCE_BASE_H_ |
6 #define PPAPI_PROXY_TCP_SOCKET_RESOURCE_BASE_H_ | 6 #define PPAPI_PROXY_TCP_SOCKET_RESOURCE_BASE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <queue> | 10 #include <queue> |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
16 #include "ppapi/c/ppb_tcp_socket.h" | 16 #include "ppapi/c/ppb_tcp_socket.h" |
17 #include "ppapi/c/private/ppb_net_address_private.h" | 17 #include "ppapi/c/private/ppb_net_address_private.h" |
18 #include "ppapi/proxy/plugin_resource.h" | 18 #include "ppapi/proxy/plugin_resource.h" |
19 #include "ppapi/proxy/ppapi_proxy_export.h" | 19 #include "ppapi/proxy/ppapi_proxy_export.h" |
20 #include "ppapi/shared_impl/ppb_tcp_socket_shared.h" | 20 #include "ppapi/shared_impl/ppb_tcp_socket_shared.h" |
21 #include "ppapi/shared_impl/tracked_callback.h" | 21 #include "ppapi/shared_impl/tracked_callback.h" |
22 | 22 |
23 namespace ppapi { | 23 namespace ppapi { |
24 | 24 |
25 class PPB_X509Certificate_Fields; | 25 class PPB_X509Certificate_Fields; |
26 class PPB_X509Certificate_Private_Shared; | 26 class PPB_X509Certificate_Private_Shared; |
27 class SocketOptionData; | |
28 | 27 |
29 namespace proxy { | 28 namespace proxy { |
30 | 29 |
31 class PPAPI_PROXY_EXPORT TCPSocketResourceBase : public PluginResource { | 30 class PPAPI_PROXY_EXPORT TCPSocketResourceBase : public PluginResource { |
32 public: | 31 public: |
33 // TODO(yzshen): Move these constants to ppb_tcp_socket_shared. | 32 // TODO(yzshen): Move these constants to ppb_tcp_socket_shared. |
34 // The maximum number of bytes that each PpapiHostMsg_PPBTCPSocket_Read | 33 // The maximum number of bytes that each PpapiHostMsg_PPBTCPSocket_Read |
35 // message is allowed to request. | 34 // message is allowed to request. |
36 static const int32_t kMaxReadSize; | 35 static const int32_t kMaxReadSize; |
37 // The maximum number of bytes that each PpapiHostMsg_PPBTCPSocket_Write | 36 // The maximum number of bytes that each PpapiHostMsg_PPBTCPSocket_Write |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 | 148 |
150 TCPSocketVersion version_; | 149 TCPSocketVersion version_; |
151 | 150 |
152 DISALLOW_COPY_AND_ASSIGN(TCPSocketResourceBase); | 151 DISALLOW_COPY_AND_ASSIGN(TCPSocketResourceBase); |
153 }; | 152 }; |
154 | 153 |
155 } // namespace proxy | 154 } // namespace proxy |
156 } // namespace ppapi | 155 } // namespace ppapi |
157 | 156 |
158 #endif // PPAPI_PROXY_TCP_SOCKET_RESOURCE_BASE_H_ | 157 #endif // PPAPI_PROXY_TCP_SOCKET_RESOURCE_BASE_H_ |
OLD | NEW |