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

Unified Diff: mojo/shell/public/cpp/names.h

Issue 1743473002: Change Mojo URLs to structured names (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@18collapse
Patch Set: . Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: mojo/shell/public/cpp/names.h
diff --git a/mojo/shell/public/cpp/names.h b/mojo/shell/public/cpp/names.h
new file mode 100644
index 0000000000000000000000000000000000000000..ac9c8ca419d5d5a4bee215fad06f10d5f019eb7f
--- /dev/null
+++ b/mojo/shell/public/cpp/names.h
@@ -0,0 +1,20 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MOJO_SHELL_PUBLIC_CPP_NAMES_H_
+#define MOJO_SHELL_PUBLIC_CPP_NAMES_H_
+
+#include <string>
+
+namespace mojo {
+
+bool IsValidName(const std::string& name);
+
+std::string GetNameType(const std::string& name);
+
+std::string GetNamePath(const std::string& name);
+
+} // namespace mojo
+
+#endif // MOJO_SHELL_PUBLIC_CPP_NAMES_H_

Powered by Google App Engine
This is Rietveld 408576698