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

Unified Diff: content/public/common/service_registry.h

Issue 1900903002: Fix content/shell including internals of content for service worker test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix ios 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 | « content/public/common/BUILD.gn ('k') | content/shell/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/service_registry.h
diff --git a/content/public/common/service_registry.h b/content/public/common/service_registry.h
index 41edc199ce7a78992a03e9e732b8f0e452a811f5..ada2f8ec458d2e865cce1ccabf9b746053922665 100644
--- a/content/public/common/service_registry.h
+++ b/content/public/common/service_registry.h
@@ -15,6 +15,7 @@
#include "mojo/public/cpp/bindings/interface_ptr.h"
#include "mojo/public/cpp/bindings/interface_request.h"
#include "mojo/public/cpp/system/core.h"
+#include "services/shell/public/interfaces/interface_provider.mojom.h"
namespace content {
@@ -24,8 +25,19 @@ namespace content {
// ConnectToRemoteService.
class CONTENT_EXPORT ServiceRegistry {
public:
+ static ServiceRegistry* Create();
virtual ~ServiceRegistry() {}
+ // Binds this ServiceProvider implementation to a message pipe endpoint.
+ virtual void Bind(shell::mojom::InterfaceProviderRequest request) = 0;
+
+ // Binds to a remote ServiceProvider. This will expose added services to the
+ // remote ServiceProvider with the corresponding handle and enable
+ // ConnectToRemoteService to provide access to services exposed by the remote
+ // ServiceProvider.
+ virtual void BindRemoteServiceProvider(
+ shell::mojom::InterfaceProviderPtr service_provider) = 0;
+
// Make the service created by |service_factory| available to the remote
// ServiceProvider. In response to each request for a service,
// |service_factory| will be run with an InterfaceRequest<Interface>
« no previous file with comments | « content/public/common/BUILD.gn ('k') | content/shell/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698