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

Side by Side Diff: mojo/edk/system/process_identifier.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: Created 5 years, 3 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_PROCESS_IDENTIFIER_H_ 5 #ifndef MOJO_EDK_SYSTEM_PROCESS_IDENTIFIER_H_
6 #define MOJO_EDK_SYSTEM_PROCESS_IDENTIFIER_H_ 6 #define MOJO_EDK_SYSTEM_PROCESS_IDENTIFIER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 namespace mojo { 10 namespace mojo {
11 namespace system { 11 namespace system {
12 12
13 // Identifiers for processes (note that these are not OS process IDs): 13 // Identifiers for processes (note that these are not OS process IDs):
14 using ProcessIdentifier = uint64_t; 14 using ProcessIdentifier = uint64_t;
15 15
16 // Zero will never be a process identifier for any process. 16 // Zero will never be a process identifier for any process.
17 const ProcessIdentifier kInvalidProcessIdentifier = 0; 17 const ProcessIdentifier kInvalidProcessIdentifier = 0;
18 18
19 // The master process will always have this process identifier. 19 // The master process will always have this process identifier.
20 const ProcessIdentifier kMasterProcessIdentifier = 1; 20 const ProcessIdentifier kMasterProcessIdentifier = 1;
21 21
22 } // namespace system 22 } // namespace system
23 } // namespace mojo 23 } // namespace mojo
24 24
25 #endif // MOJO_EDK_SYSTEM_PROCESS_IDENTIFIER_H_ 25 #endif // MOJO_EDK_SYSTEM_PROCESS_IDENTIFIER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698