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

Unified Diff: services/shell/public/cpp/capabilities.h

Issue 1882423004: Move shell service to toplevel shell namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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
« no previous file with comments | « services/shell/public/cpp/application_test_base.h ('k') | services/shell/public/cpp/connect.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/shell/public/cpp/capabilities.h
diff --git a/services/shell/public/cpp/capabilities.h b/services/shell/public/cpp/capabilities.h
index 46ece61ab49ee995973dd8bf34a1b3042c377c79..53eaf7d2b12a8aff564e2ae72372a391b8b6feb7 100644
--- a/services/shell/public/cpp/capabilities.h
+++ b/services/shell/public/cpp/capabilities.h
@@ -11,7 +11,8 @@
#include "services/shell/public/interfaces/shell_resolver.mojom.h"
-namespace mojo {
+namespace shell {
+
using Class = std::string;
using Classes = std::set<std::string>;
using Interface = std::string;
@@ -41,29 +42,36 @@ struct CapabilitySpec {
std::map<Name, CapabilityRequest> required;
};
+} // namespace shell
+
+namespace mojo {
+
template <>
-struct TypeConverter<shell::mojom::CapabilitySpecPtr, CapabilitySpec> {
+struct TypeConverter<shell::mojom::CapabilitySpecPtr, shell::CapabilitySpec> {
static shell::mojom::CapabilitySpecPtr Convert(
- const CapabilitySpec& input);
+ const shell::CapabilitySpec& input);
};
+
template <>
-struct TypeConverter<CapabilitySpec, shell::mojom::CapabilitySpecPtr> {
- static CapabilitySpec Convert(
+struct TypeConverter<shell::CapabilitySpec, shell::mojom::CapabilitySpecPtr> {
+ static shell::CapabilitySpec Convert(
const shell::mojom::CapabilitySpecPtr& input);
};
template <>
struct TypeConverter<shell::mojom::CapabilityRequestPtr,
- CapabilityRequest> {
+ shell::CapabilityRequest> {
static shell::mojom::CapabilityRequestPtr Convert(
- const CapabilityRequest& input);
+ const shell::CapabilityRequest& input);
};
+
template <>
-struct TypeConverter<CapabilityRequest,
+struct TypeConverter<shell::CapabilityRequest,
shell::mojom::CapabilityRequestPtr> {
- static CapabilityRequest Convert(
+ static shell::CapabilityRequest Convert(
const shell::mojom::CapabilityRequestPtr& input);
};
+
} // namespace mojo
#endif // SERVICES_SHELL_PUBLIC_CPP_CAPABILITIES_H_
« no previous file with comments | « services/shell/public/cpp/application_test_base.h ('k') | services/shell/public/cpp/connect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698