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

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

Issue 23621056: Initial in-process implementation of some Mojo primitives. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build fix Created 7 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef MOJO_SYSTEM_LIMITS_H_
6 #define MOJO_SYSTEM_LIMITS_H_
7
8 namespace mojo {
9 namespace system {
10
11 // Maximum of open (Mojo) handles.
12 // TODO(vtl): This doesn't count "live" handles, some of which may live in
13 // messages.
14 const size_t kMaxHandleTableSize = 1000000;
15
16 const size_t kMaxWaitManyNumHandles = kMaxHandleTableSize;
17
18 const size_t kMaxMessageNumBytes = 4 * 1024 * 1024;
19
20 const size_t kMaxMessageNumHandles = 10000;
21
22 } // namespace system
23 } // namespace mojo
24
25 #endif // MOJO_SYSTEM_LIMITS_H_
OLDNEW
« mojo/mojo.gyp ('K') | « mojo/system/dispatcher_unittest.cc ('k') | mojo/system/memory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698