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

Side by Side Diff: mojo/edk/embedder/configuration.h

Issue 2744943002: Mojo: Move waiting APIs to public library (Closed)
Patch Set: . Created 3 years, 9 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 | « mojo/common/data_pipe_utils.cc ('k') | mojo/edk/embedder/embedder_unittest.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 MOJO_EDK_EMBEDDER_CONFIGURATION_H_ 5 #ifndef MOJO_EDK_EMBEDDER_CONFIGURATION_H_
6 #define MOJO_EDK_EMBEDDER_CONFIGURATION_H_ 6 #define MOJO_EDK_EMBEDDER_CONFIGURATION_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 namespace mojo { 11 namespace mojo {
12 namespace edk { 12 namespace edk {
13 13
14 // A set of constants that the Mojo system internally uses. These values should 14 // A set of constants that the Mojo system internally uses. These values should
15 // be consistent across all processes on the same system. 15 // be consistent across all processes on the same system.
16 // 16 //
17 // In general, there should be no need to change these values from their 17 // In general, there should be no need to change these values from their
18 // defaults. However, if you do change them, you must do so before 18 // defaults. However, if you do change them, you must do so before
19 // initialization. 19 // initialization.
20 struct Configuration { 20 struct Configuration {
21 // Maximum number of open (Mojo) handles. The default is 1,000,000. 21 // Maximum number of open (Mojo) handles. The default is 1,000,000.
22 // 22 //
23 // TODO(vtl): This doesn't count "live" handles, some of which may live in 23 // TODO(vtl): This doesn't count "live" handles, some of which may live in
24 // messages. 24 // messages.
25 size_t max_handle_table_size; 25 size_t max_handle_table_size;
26 26
27 // Maximum number of active memory mappings. The default is 1,000,000. 27 // Maximum number of active memory mappings. The default is 1,000,000.
28 size_t max_mapping_table_sze; 28 size_t max_mapping_table_sze;
29 29
30 // Upper limit of |MojoWaitMany()|'s |num_handles|. The default is 1,000,000.
31 // Must be same as or smaller than |max_handle_table_size|.
32 size_t max_wait_many_num_handles;
33
34 // Maximum data size of messages sent over message pipes, in bytes. The 30 // Maximum data size of messages sent over message pipes, in bytes. The
35 // default is 4MB. 31 // default is 4MB.
36 size_t max_message_num_bytes; 32 size_t max_message_num_bytes;
37 33
38 // Maximum number of handles that can be attached to messages sent over 34 // Maximum number of handles that can be attached to messages sent over
39 // message pipes. The default is 10,000. 35 // message pipes. The default is 10,000.
40 size_t max_message_num_handles; 36 size_t max_message_num_handles;
41 37
42 // Maximum capacity of a data pipe, in bytes. The default is 256MB. This value 38 // Maximum capacity of a data pipe, in bytes. The default is 256MB. This value
43 // must fit into a |uint32_t|. WARNING: If you bump it closer to 2^32, you 39 // must fit into a |uint32_t|. WARNING: If you bump it closer to 2^32, you
(...skipping 16 matching lines...) Expand all
60 // TODO(vtl): Set this hard limit appropriately (e.g., higher on 64-bit). 56 // TODO(vtl): Set this hard limit appropriately (e.g., higher on 64-bit).
61 // (This will also entail some auditing to make sure I'm not messing up my 57 // (This will also entail some auditing to make sure I'm not messing up my
62 // checks anywhere.) 58 // checks anywhere.)
63 size_t max_shared_memory_num_bytes; 59 size_t max_shared_memory_num_bytes;
64 }; 60 };
65 61
66 } // namespace edk 62 } // namespace edk
67 } // namespace mojo 63 } // namespace mojo
68 64
69 #endif // MOJO_EDK_EMBEDDER_CONFIGURATION_H_ 65 #endif // MOJO_EDK_EMBEDDER_CONFIGURATION_H_
OLDNEW
« no previous file with comments | « mojo/common/data_pipe_utils.cc ('k') | mojo/edk/embedder/embedder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698