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 599b3df089f26cedc4f4b8eb35c21f35435207d3..761c312ca23227532f38f77202ff9a3650c2bc2a 100644 |
--- a/mojo/services/network/http_server_impl.cc |
+++ b/mojo/services/network/http_server_impl.cc |
@@ -25,8 +25,10 @@ const int kBackLog = 10; |
void HttpServerImpl::Create( |
NetAddressPtr local_address, |
HttpServerDelegatePtr delegate, |
+ scoped_ptr<mojo::AppRefCount> app_refcount, |
const Callback<void(NetworkErrorPtr, NetAddressPtr)>& callback) { |
- HttpServerImpl* http_server = new HttpServerImpl(delegate.Pass()); |
+ HttpServerImpl* http_server = new HttpServerImpl( |
+ delegate.Pass(), app_refcount.Pass()); |
int net_error = http_server->Start(local_address.Pass()); |
if (net_error != net::OK) { |
@@ -37,8 +39,10 @@ void HttpServerImpl::Create( |
callback.Run(MakeNetworkError(net::OK), http_server->GetLocalAddress()); |
} |
-HttpServerImpl::HttpServerImpl(HttpServerDelegatePtr delegate) |
- : delegate_(delegate.Pass()) { |
+HttpServerImpl::HttpServerImpl( |
+ HttpServerDelegatePtr delegate, |
+ scoped_ptr<mojo::AppRefCount> app_refcount) |
+ : delegate_(delegate.Pass()), app_refcount_(app_refcount.Pass()) { |
DCHECK(delegate_); |
delegate_.set_error_handler(this); |
} |