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

Side by Side Diff: mojo/shell/public/cpp/names.h

Issue 1828803002: Simplify resolve. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@61catalog
Patch Set: . Created 4 years, 9 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/shell/public/cpp/lib/names.cc ('k') | mojo/shell/public/interfaces/shell_resolver.mojom » ('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 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 #ifndef MOJO_SHELL_PUBLIC_CPP_NAMES_H_ 5 #ifndef MOJO_SHELL_PUBLIC_CPP_NAMES_H_
6 #define MOJO_SHELL_PUBLIC_CPP_NAMES_H_ 6 #define MOJO_SHELL_PUBLIC_CPP_NAMES_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 namespace mojo { 10 namespace mojo {
11 11
12 extern const char kNameType_Mojo[];
13 extern const char kNameType_Exe[];
14
12 // Mojo services and applications are identified by structured "names", of the 15 // Mojo services and applications are identified by structured "names", of the
13 // form: 16 // form:
14 // 17 //
15 // type:path. 18 // type:path.
16 // 19 //
17 // The type field tells the shell how to load the application. Two types are 20 // The type field tells the shell how to load the application. Two types are
18 // currently recognized: 21 // currently recognized:
19 // 22 //
20 // mojo 23 // mojo
21 // Represents an application packaged as a .mojo, launched from the 24 // Represents an application packaged as a .mojo, launched from the
(...skipping 22 matching lines...) Expand all
44 47
45 // Get the type component of the specified name. 48 // Get the type component of the specified name.
46 std::string GetNameType(const std::string& name); 49 std::string GetNameType(const std::string& name);
47 50
48 // Get the path component of the specified name. 51 // Get the path component of the specified name.
49 std::string GetNamePath(const std::string& name); 52 std::string GetNamePath(const std::string& name);
50 53
51 } // namespace mojo 54 } // namespace mojo
52 55
53 #endif // MOJO_SHELL_PUBLIC_CPP_NAMES_H_ 56 #endif // MOJO_SHELL_PUBLIC_CPP_NAMES_H_
OLDNEW
« no previous file with comments | « mojo/shell/public/cpp/lib/names.cc ('k') | mojo/shell/public/interfaces/shell_resolver.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698