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

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

Issue 1346383004: EDK: Remove MOJO_SYSTEM_IMPL_EXPORT, system_impl_export.h, etc. (Closed) Base URL: https://github.com/domokit/mojo.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
« no previous file with comments | « mojo/edk/embedder/process_delegate.h ('k') | mojo/edk/embedder/scoped_platform_handle.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 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_EMBEDDER_PROCESS_TYPE_H_ 5 #ifndef MOJO_EDK_EMBEDDER_PROCESS_TYPE_H_
6 #define MOJO_EDK_EMBEDDER_PROCESS_TYPE_H_ 6 #define MOJO_EDK_EMBEDDER_PROCESS_TYPE_H_
7 7
8 #include <ostream> 8 #include <ostream>
9 9
10 #include "mojo/edk/system/system_impl_export.h"
11
12 namespace mojo { 10 namespace mojo {
13 namespace embedder { 11 namespace embedder {
14 12
15 enum class ProcessType { 13 enum class ProcessType {
16 // |InitIPCSupport()| has not been called (or |ShutdownIPCSupport()| has been 14 // |InitIPCSupport()| has not been called (or |ShutdownIPCSupport()| has been
17 // called). 15 // called).
18 UNINITIALIZED, 16 UNINITIALIZED,
19 // Process without connection management. 17 // Process without connection management.
20 NONE, 18 NONE,
21 // Master process. 19 // Master process.
22 MASTER, 20 MASTER,
23 // Slave process. 21 // Slave process.
24 SLAVE, 22 SLAVE,
25 }; 23 };
26 24
27 // So logging macros and |DCHECK_EQ()|, etc. work. 25 // So logging macros and |DCHECK_EQ()|, etc. work.
28 MOJO_SYSTEM_IMPL_EXPORT inline std::ostream& operator<<( 26 inline std::ostream& operator<<(std::ostream& out, ProcessType process_type) {
29 std::ostream& out,
30 ProcessType process_type) {
31 return out << static_cast<int>(process_type); 27 return out << static_cast<int>(process_type);
32 } 28 }
33 29
34 } // namespace embedder 30 } // namespace embedder
35 } // namespace mojo 31 } // namespace mojo
36 32
37 #endif // MOJO_EDK_EMBEDDER_PROCESS_TYPE_H_ 33 #endif // MOJO_EDK_EMBEDDER_PROCESS_TYPE_H_
OLDNEW
« no previous file with comments | « mojo/edk/embedder/process_delegate.h ('k') | mojo/edk/embedder/scoped_platform_handle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698