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

Unified Diff: services/http_server/http_server_impl.h

Issue 1682113003: Mojo C++ bindings: Generate InterfaceHandle<> instead of InterfacePtr<>. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 10 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: services/http_server/http_server_impl.h
diff --git a/services/http_server/http_server_impl.h b/services/http_server/http_server_impl.h
index 0c96ece484c7504aa7a18349cbdb7d387cfafb00..55ceefa4664679b25379a90f55c95abfced6ffc0 100644
--- a/services/http_server/http_server_impl.h
+++ b/services/http_server/http_server_impl.h
@@ -6,6 +6,7 @@
#include "base/memory/scoped_vector.h"
#include "base/memory/weak_ptr.h"
#include "mojo/common/binding_set.h"
+#include "mojo/public/cpp/bindings/interface_handle.h"
#include "mojo/public/cpp/bindings/interface_request.h"
#include "mojo/public/cpp/bindings/strong_binding.h"
#include "mojo/services/http_server/interfaces/http_request.mojom.h"
@@ -35,7 +36,7 @@ class HttpServerImpl : public HttpServer {
// HttpServer:
void SetHandler(const mojo::String& path,
- HttpHandlerPtr http_handler,
+ mojo::InterfaceHandle<HttpHandler> http_handler,
const mojo::Callback<void(bool)>& callback) override;
void GetPort(const GetPortCallback& callback) override;

Powered by Google App Engine
This is Rietveld 408576698