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

Side by Side Diff: mojo/edk/system/connection_manager.h

Issue 1154903003: "typedef Foo Bar" -> "using Bar = Foo" in //mojo/edk/.... (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 7 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_CONNECTION_MANAGER_H_ 5 #ifndef MOJO_EDK_SYSTEM_CONNECTION_MANAGER_H_
6 #define MOJO_EDK_SYSTEM_CONNECTION_MANAGER_H_ 6 #define MOJO_EDK_SYSTEM_CONNECTION_MANAGER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "mojo/edk/system/system_impl_export.h" 9 #include "mojo/edk/system/system_impl_export.h"
10 #include "mojo/edk/system/unique_identifier.h" 10 #include "mojo/edk/system/unique_identifier.h"
11 11
12 namespace mojo { 12 namespace mojo {
13 13
14 namespace embedder { 14 namespace embedder {
15 class PlatformSupport; 15 class PlatformSupport;
16 class ScopedPlatformHandle; 16 class ScopedPlatformHandle;
17 } // namespace embedder 17 } // namespace embedder
18 18
19 namespace system { 19 namespace system {
20 20
21 // (Temporary, unique) identifiers for connections, used as they are being 21 // (Temporary, unique) identifiers for connections, used as they are being
22 // brought up: 22 // brought up:
23 typedef UniqueIdentifier ConnectionIdentifier; 23 using ConnectionIdentifier = UniqueIdentifier;
24 24
25 // Identifiers for processes (note that these are not OS process IDs): 25 // Identifiers for processes (note that these are not OS process IDs):
26 typedef uint64_t ProcessIdentifier; 26 using ProcessIdentifier = uint64_t;
27 const ProcessIdentifier kInvalidProcessIdentifier = 0; 27 const ProcessIdentifier kInvalidProcessIdentifier = 0;
28 28
29 // |ConnectionManager| is an interface for the system that allows "connections" 29 // |ConnectionManager| is an interface for the system that allows "connections"
30 // (i.e., native "pipes") to be established between different processes. 30 // (i.e., native "pipes") to be established between different processes.
31 // 31 //
32 // The starting point for establishing such a connection is that the two 32 // The starting point for establishing such a connection is that the two
33 // processes (not necessarily distinct) are provided with a common 33 // processes (not necessarily distinct) are provided with a common
34 // |ConnectionIdentifier|, and also some (probably indirect, temporary) way of 34 // |ConnectionIdentifier|, and also some (probably indirect, temporary) way of
35 // communicating. 35 // communicating.
36 // 36 //
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 private: 110 private:
111 embedder::PlatformSupport* const platform_support_; 111 embedder::PlatformSupport* const platform_support_;
112 112
113 DISALLOW_COPY_AND_ASSIGN(ConnectionManager); 113 DISALLOW_COPY_AND_ASSIGN(ConnectionManager);
114 }; 114 };
115 115
116 } // namespace system 116 } // namespace system
117 } // namespace mojo 117 } // namespace mojo
118 118
119 #endif // MOJO_EDK_SYSTEM_CONNECTION_MANAGER_H_ 119 #endif // MOJO_EDK_SYSTEM_CONNECTION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698