| 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);
|
|
|