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

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

Issue 2652123003: Make ppapi/proxy child-process only (Closed)
Patch Set: component Created 3 years, 11 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
« no previous file with comments | « ppapi/proxy/tcp_socket_resource_base.cc ('k') | ppapi/proxy/tcp_socket_resource_constants.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include <stdint.h>
6
7 #include "base/macros.h"
8 #include "ppapi/proxy/ppapi_proxy_export.h"
9
10 namespace ppapi {
11 namespace proxy {
12
13 class PPAPI_PROXY_EXPORT TCPSocketResourceConstants {
14 public:
15 // The maximum number of bytes that each PpapiHostMsg_PPBTCPSocket_Read
16 // message is allowed to request.
17 static const int32_t kMaxReadSize;
18 // The maximum number of bytes that each PpapiHostMsg_PPBTCPSocket_Write
19 // message is allowed to carry.
20 static const int32_t kMaxWriteSize;
21
22 // The maximum number that we allow for setting
23 // PP_TCPSOCKET_OPTION_SEND_BUFFER_SIZE. This number is only for input
24 // argument sanity check, it doesn't mean the browser guarantees to support
25 // such a buffer size.
26 static const int32_t kMaxSendBufferSize;
27 // The maximum number that we allow for setting
28 // PP_TCPSOCKET_OPTION_RECV_BUFFER_SIZE. This number is only for input
29 // argument sanity check, it doesn't mean the browser guarantees to support
30 // such a buffer size.
31 static const int32_t kMaxReceiveBufferSize;
32
33 private:
34 DISALLOW_COPY_AND_ASSIGN(TCPSocketResourceConstants);
35 };
36
37 } // namespace proxy
38 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/tcp_socket_resource_base.cc ('k') | ppapi/proxy/tcp_socket_resource_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698