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

Unified Diff: content/public/utility/content_utility_client.h

Issue 1149833007: Embed a mojo ApplicationManager in content/browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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: content/public/utility/content_utility_client.h
diff --git a/content/public/utility/content_utility_client.h b/content/public/utility/content_utility_client.h
index 8a333e7ed7dbdfdf468d1a1c87367db2a0830bd7..b326eae140cfd24c9ac70c321a9bcf98c3aa3f79 100644
--- a/content/public/utility/content_utility_client.h
+++ b/content/public/utility/content_utility_client.h
@@ -5,8 +5,18 @@
#ifndef CONTENT_PUBLIC_UTILITY_CONTENT_UTILITY_CLIENT_H_
#define CONTENT_PUBLIC_UTILITY_CONTENT_UTILITY_CLIENT_H_
+#include <map>
+
+#include "base/callback_forward.h"
+#include "base/memory/scoped_ptr.h"
#include "content/public/common/content_client.h"
+class GURL;
+
+namespace mojo {
+class ApplicationDelegate;
+}
+
namespace content {
class ServiceRegistry;
@@ -14,6 +24,9 @@ class ServiceRegistry;
// Embedder API for participating in renderer logic.
class CONTENT_EXPORT ContentUtilityClient {
public:
+ using StaticMojoApplicationMap =
+ std::map<GURL, base::Callback<scoped_ptr<mojo::ApplicationDelegate>()>>;
+
virtual ~ContentUtilityClient() {}
// Notifies us that the UtilityThread has been created.
@@ -24,6 +37,9 @@ class CONTENT_EXPORT ContentUtilityClient {
// Registers Mojo services.
virtual void RegisterMojoServices(ServiceRegistry* registry) {}
+
+ // Registers Mojo applications.
+ virtual void RegisterMojoApplications(StaticMojoApplicationMap* apps) {}
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698