Index: mojo/services/network/http_server_impl.h |
diff --git a/mojo/services/network/http_server_impl.h b/mojo/services/network/http_server_impl.h |
index 01e26cce02210c730f17db7df40e08df423ef9fc..bb43ce1802a76f3fd7d74214e39e64ce6b2d740e 100644 |
--- a/mojo/services/network/http_server_impl.h |
+++ b/mojo/services/network/http_server_impl.h |
@@ -10,6 +10,7 @@ |
#include "base/macros.h" |
#include "base/memory/linked_ptr.h" |
#include "base/memory/scoped_ptr.h" |
+#include "mojo/application/app_lifetime_helper.h" |
#include "mojo/services/network/public/interfaces/http_server.mojom.h" |
#include "mojo/services/network/public/interfaces/net_address.mojom.h" |
#include "net/server/http_server.h" |
@@ -29,6 +30,7 @@ class HttpServerImpl : public net::HttpServer::Delegate, |
static void Create( |
NetAddressPtr local_address, |
HttpServerDelegatePtr delegate, |
+ scoped_ptr<mojo::AppRefCount> app_refcount, |
const Callback<void(NetworkErrorPtr, NetAddressPtr)>& callback); |
net::HttpServer* server() { return server_.get(); } |
@@ -38,7 +40,8 @@ class HttpServerImpl : public net::HttpServer::Delegate, |
// |delegate|'s underlying pipe. The object will self-destruct when it is |
// notified that |delegate|'s pipe is closed. Deleting the object directly |
// before that is okay, too. |
- explicit HttpServerImpl(HttpServerDelegatePtr delegate); |
+ HttpServerImpl(HttpServerDelegatePtr delegate, |
+ scoped_ptr<mojo::AppRefCount> app_refcount); |
~HttpServerImpl() override; |
int Start(NetAddressPtr local_address); |
@@ -57,6 +60,7 @@ class HttpServerImpl : public net::HttpServer::Delegate, |
void OnConnectionError() override; |
HttpServerDelegatePtr delegate_; |
+ scoped_ptr<mojo::AppRefCount> app_refcount_; |
scoped_ptr<net::HttpServer> server_; |
std::map<int, linked_ptr<HttpConnectionImpl>> connections_; |