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

Side by Side Diff: mojo/public/cpp/application/service_connector.h

Issue 2250183003: Make the fuchsia mojo/public repo the source of truth. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 4 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
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef MOJO_PUBLIC_APPLICATION_SERVICE_CONNECTOR_H_
6 #define MOJO_PUBLIC_APPLICATION_SERVICE_CONNECTOR_H_
7
8 #include <string>
9
10 #include "mojo/public/cpp/system/message_pipe.h"
11
12 namespace mojo {
13
14 struct ConnectionContext;
15
16 // |ServiceConnector| is the generic, type-unsafe interface for objects used by
17 // |ServiceProviderImpl| to connect generic "interface requests" (i.e., just
18 // message pipes) specified by service name to service implementations.
19 class ServiceConnector {
20 public:
21 virtual ~ServiceConnector() {}
22
23 // Connects to the |ServiceConnector|'s service (if the |ServiceConnector|
24 // wishes to refuse the connection, it should simply drop |handle|).
25 virtual void ConnectToService(const ConnectionContext& connection_context,
26 ScopedMessagePipeHandle handle) = 0;
27 };
28
29 } // namespace mojo
30
31 #endif // MOJO_PUBLIC_APPLICATION_SERVICE_CONNECTOR_H_
OLDNEW
« no previous file with comments | « mojo/public/cpp/application/run_application.h ('k') | mojo/public/cpp/application/service_provider_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698