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

Side by Side Diff: mojo/system/constants.h

Issue 623883002: Revert "Move mojo edk into mojo/edk" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « mojo/system/channel_unittest.cc ('k') | mojo/system/core.h » ('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 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 MOJO_EDK_SYSTEM_CONSTANTS_H_ 5 #ifndef MOJO_SYSTEM_CONSTANTS_H_
6 #define MOJO_EDK_SYSTEM_CONSTANTS_H_ 6 #define MOJO_SYSTEM_CONSTANTS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 namespace mojo { 10 namespace mojo {
11 namespace system { 11 namespace system {
12 12
13 // Maximum number of open (Mojo) handles. 13 // Maximum number of open (Mojo) handles.
14 // TODO(vtl): This doesn't count "live" handles, some of which may live in 14 // TODO(vtl): This doesn't count "live" handles, some of which may live in
15 // messages. 15 // messages.
16 const size_t kMaxHandleTableSize = 1000000; 16 const size_t kMaxHandleTableSize = 1000000;
(...skipping 21 matching lines...) Expand all
38 const size_t kDataPipeBufferAlignmentBytes = 16; 38 const size_t kDataPipeBufferAlignmentBytes = 16;
39 39
40 // TODO(vtl): Set this hard limit appropriately (e.g., higher on 64-bit). (This 40 // TODO(vtl): Set this hard limit appropriately (e.g., higher on 64-bit). (This
41 // will also entail some auditing to make sure I'm not messing up my checks 41 // will also entail some auditing to make sure I'm not messing up my checks
42 // anywhere.) 42 // anywhere.)
43 const size_t kMaxSharedMemoryNumBytes = 1024 * 1024 * 1024; // 1 GB. 43 const size_t kMaxSharedMemoryNumBytes = 1024 * 1024 * 1024; // 1 GB.
44 44
45 } // namespace system 45 } // namespace system
46 } // namespace mojo 46 } // namespace mojo
47 47
48 #endif // MOJO_EDK_SYSTEM_CONSTANTS_H_ 48 #endif // MOJO_SYSTEM_CONSTANTS_H_
OLDNEW
« no previous file with comments | « mojo/system/channel_unittest.cc ('k') | mojo/system/core.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698