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

Side by Side Diff: services/service_manager/public/cpp/connector.h

Issue 2475543003: Introduce the image_decoder service (Closed)
Patch Set: . Created 4 years, 1 month 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SERVICES_SERVICE_MANAGER_PUBLIC_CPP_CONNECTOR_H_ 5 #ifndef SERVICES_SERVICE_MANAGER_PUBLIC_CPP_CONNECTOR_H_
6 #define SERVICES_SERVICE_MANAGER_PUBLIC_CPP_CONNECTOR_H_ 6 #define SERVICES_SERVICE_MANAGER_PUBLIC_CPP_CONNECTOR_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "services/service_manager/public/cpp/connection.h" 10 #include "services/service_manager/public/cpp/connection.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 void ConnectToInterface(const std::string& name, 102 void ConnectToInterface(const std::string& name,
103 mojo::InterfacePtr<Interface>* ptr) { 103 mojo::InterfacePtr<Interface>* ptr) {
104 ConnectParams params(name); 104 ConnectParams params(name);
105 return ConnectToInterface(&params, ptr); 105 return ConnectToInterface(&params, ptr);
106 } 106 }
107 107
108 // Creates a new instance of this class which may be passed to another thread. 108 // Creates a new instance of this class which may be passed to another thread.
109 // The returned object may be passed multiple times until Connect() is called, 109 // The returned object may be passed multiple times until Connect() is called,
110 // at which point this method must be called again to pass again. 110 // at which point this method must be called again to pass again.
111 virtual std::unique_ptr<Connector> Clone() = 0; 111 virtual std::unique_ptr<Connector> Clone() = 0;
112
113 // Binds a Connector request to the other end of this Connector.
114 virtual void BindRequest(mojom::ConnectorRequest request) = 0;
112 }; 115 };
113 116
114 } // namespace service_manager 117 } // namespace service_manager
115 118
116 #endif // SERVICES_SERVICE_MANAGER_PUBLIC_CPP_CONNECTOR_H_ 119 #endif // SERVICES_SERVICE_MANAGER_PUBLIC_CPP_CONNECTOR_H_
OLDNEW
« no previous file with comments | « services/image_decoder/public/interfaces/image_decoder.mojom ('k') | services/service_manager/public/cpp/lib/connector_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698