summaryrefslogtreecommitdiffstats
path: root/mojo/services/network/http_server_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'mojo/services/network/http_server_impl.cc')
-rw-r--r--mojo/services/network/http_server_impl.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/mojo/services/network/http_server_impl.cc b/mojo/services/network/http_server_impl.cc
index 599b3df..761c312 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);
}