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

Unified Diff: mojo/services/network/http_server_impl.cc

Issue 1841863002: Update monet. (Closed) Base URL: https://github.com/domokit/monet.git@master
Patch Set: Created 4 years, 9 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 | « mojo/services/network/http_server_impl.h ('k') | mojo/services/network/interfaces/host_resolver.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/network/http_server_impl.cc
diff --git a/mojo/services/network/http_server_impl.cc b/mojo/services/network/http_server_impl.cc
index c7ebdddd2e8faa6cb4df378af7f1188283747982..786ade60e85f72e4ab13a87e9f46ddd12e901e62 100644
--- a/mojo/services/network/http_server_impl.cc
+++ b/mojo/services/network/http_server_impl.cc
@@ -24,7 +24,7 @@ const int kBackLog = 10;
// static
void HttpServerImpl::Create(
NetAddressPtr local_address,
- HttpServerDelegatePtr delegate,
+ InterfaceHandle<HttpServerDelegate> delegate,
const Callback<void(NetworkErrorPtr, NetAddressPtr)>& callback) {
HttpServerImpl* http_server = new HttpServerImpl(delegate.Pass());
@@ -37,8 +37,8 @@ void HttpServerImpl::Create(
callback.Run(MakeNetworkError(net::OK), http_server->GetLocalAddress());
}
-HttpServerImpl::HttpServerImpl(HttpServerDelegatePtr delegate)
- : delegate_(delegate.Pass()) {
+HttpServerImpl::HttpServerImpl(InterfaceHandle<HttpServerDelegate> delegate)
+ : delegate_(HttpServerDelegatePtr::Create(delegate.Pass())) {
DCHECK(delegate_);
delegate_.set_connection_error_handler([this]() { delete this; });
}
@@ -75,7 +75,7 @@ NetAddressPtr HttpServerImpl::GetLocalAddress() const {
void HttpServerImpl::OnConnect(int connection_id) {
DCHECK(connections_.find(connection_id) == connections_.end());
- HttpConnectionPtr connection;
+ InterfaceHandle<HttpConnection> connection;
HttpConnectionDelegatePtr connection_delegate;
InterfaceRequest<HttpConnectionDelegate> delegate_request =
GetProxy(&connection_delegate);
« no previous file with comments | « mojo/services/network/http_server_impl.h ('k') | mojo/services/network/interfaces/host_resolver.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698