OLD | NEW |
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 THIRD_PARTY_MOJO_SRC_MOJO_EDK_EMBEDDER_CONFIGURATION_H_ | 5 #ifndef MOJO_EDK_EMBEDDER_CONFIGURATION_H_ |
6 #define THIRD_PARTY_MOJO_SRC_MOJO_EDK_EMBEDDER_CONFIGURATION_H_ | 6 #define MOJO_EDK_EMBEDDER_CONFIGURATION_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 namespace mojo { | 10 namespace mojo { |
11 namespace embedder { | 11 namespace edk { |
12 | 12 |
13 // A set of constants that the Mojo system internally uses. These values should | 13 // A set of constants that the Mojo system internally uses. These values should |
14 // be consistent across all processes on the same system. | 14 // be consistent across all processes on the same system. |
15 // | 15 // |
16 // In general, there should be no need to change these values from their | 16 // In general, there should be no need to change these values from their |
17 // defaults. However, if you do change them, you must do so before | 17 // defaults. However, if you do change them, you must do so before |
18 // initialization. | 18 // initialization. |
19 struct Configuration { | 19 struct Configuration { |
20 // Maximum number of open (Mojo) handles. The default is 1,000,000. | 20 // Maximum number of open (Mojo) handles. The default is 1,000,000. |
21 // | 21 // |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 | 55 |
56 // Maximum size of a single shared memory segment, in bytes. The default is | 56 // Maximum size of a single shared memory segment, in bytes. The default is |
57 // 1GB. | 57 // 1GB. |
58 // | 58 // |
59 // TODO(vtl): Set this hard limit appropriately (e.g., higher on 64-bit). | 59 // TODO(vtl): Set this hard limit appropriately (e.g., higher on 64-bit). |
60 // (This will also entail some auditing to make sure I'm not messing up my | 60 // (This will also entail some auditing to make sure I'm not messing up my |
61 // checks anywhere.) | 61 // checks anywhere.) |
62 size_t max_shared_memory_num_bytes; | 62 size_t max_shared_memory_num_bytes; |
63 }; | 63 }; |
64 | 64 |
65 } // namespace embedder | 65 } // namespace edk |
66 } // namespace mojo | 66 } // namespace mojo |
67 | 67 |
68 #endif // THIRD_PARTY_MOJO_SRC_MOJO_EDK_EMBEDDER_CONFIGURATION_H_ | 68 #endif // MOJO_EDK_EMBEDDER_CONFIGURATION_H_ |
OLD | NEW |