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

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

Issue 1350023003: Add a Mojo EDK for Chrome that uses one OS pipe per message pipe. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: some review comments Created 5 years, 2 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
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 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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698