Index: mojo/services/network/url_loader_impl.h |
diff --git a/mojo/services/network/url_loader_impl.h b/mojo/services/network/url_loader_impl.h |
index 421b71712b0e51064b58c03a033571baa8132838..c4aa45108ac081b6b236e5d5eb36c36f13efb08f 100644 |
--- a/mojo/services/network/url_loader_impl.h |
+++ b/mojo/services/network/url_loader_impl.h |
@@ -7,6 +7,7 @@ |
#include "base/memory/scoped_ptr.h" |
#include "base/memory/weak_ptr.h" |
+#include "mojo/application/app_lifetime_helper.h" |
#include "mojo/common/handle_watcher.h" |
#include "mojo/services/network/public/interfaces/url_loader.mojom.h" |
#include "net/base/net_errors.h" |
@@ -24,7 +25,9 @@ class URLLoaderImpl : public URLLoader, |
public ErrorHandler, |
public net::URLRequest::Delegate { |
public: |
- URLLoaderImpl(NetworkContext* context, InterfaceRequest<URLLoader> request); |
+ URLLoaderImpl(NetworkContext* context, |
+ InterfaceRequest<URLLoader> request, |
+ scoped_ptr<mojo::AppRefCount> app_refcount); |
~URLLoaderImpl() override; |
// Called when the associated NetworkContext is going away. |
@@ -68,6 +71,7 @@ class URLLoaderImpl : public URLLoader, |
bool auto_follow_redirects_; |
bool connected_; |
Binding<URLLoader> binding_; |
+ scoped_ptr<mojo::AppRefCount> app_refcount_; |
base::WeakPtrFactory<URLLoaderImpl> weak_ptr_factory_; |
}; |