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

Side by Side Diff: mojo/edk/system/ports/name.cc

Issue 2515483002: Move const PortName data out of header file (Closed)
Patch Set: Created 4 years, 1 month 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/system/ports/name.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #include "mojo/edk/system/ports/name.h" 5 #include "mojo/edk/system/ports/name.h"
6 6
7 namespace mojo { 7 namespace mojo {
8 namespace edk { 8 namespace edk {
9 namespace ports { 9 namespace ports {
10 10
11 extern const PortName kInvalidPortName = {0, 0};
12
13 extern const NodeName kInvalidNodeName = {0, 0};
14
11 std::ostream& operator<<(std::ostream& stream, const Name& name) { 15 std::ostream& operator<<(std::ostream& stream, const Name& name) {
12 std::ios::fmtflags flags(stream.flags()); 16 std::ios::fmtflags flags(stream.flags());
13 stream << std::hex << std::uppercase << name.v1; 17 stream << std::hex << std::uppercase << name.v1;
14 if (name.v2 != 0) 18 if (name.v2 != 0)
15 stream << '.' << name.v2; 19 stream << '.' << name.v2;
16 stream.flags(flags); 20 stream.flags(flags);
17 return stream; 21 return stream;
18 } 22 }
19 23
20 } // namespace ports 24 } // namespace ports
21 } // namespace edk 25 } // namespace edk
22 } // namespace mojo 26 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/edk/system/ports/name.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698