| Index: mojo/application/public/cpp/app_lifetime_helper.h
|
| diff --git a/mojo/application/public/cpp/app_lifetime_helper.h b/mojo/application/public/cpp/app_lifetime_helper.h
|
| index 93005ef45b14437ada131bfb54a3e339a7adb81b..dbbca18e63fc396f9c3f9c3b850185a2342f1170 100644
|
| --- a/mojo/application/public/cpp/app_lifetime_helper.h
|
| +++ b/mojo/application/public/cpp/app_lifetime_helper.h
|
| @@ -34,11 +34,16 @@ class AppRefCount {
|
| friend AppLifetimeHelper;
|
|
|
| AppRefCount(AppLifetimeHelper* app_lifetime_helper,
|
| + base::TimeDelta release_delay_,
|
| scoped_refptr<base::SingleThreadTaskRunner> app_task_runner);
|
|
|
| // Don't need to use weak ptr because if the app thread is alive that means
|
| // app is.
|
| AppLifetimeHelper* app_lifetime_helper_;
|
| +
|
| + // Delay before releasing the ref-count.
|
| + base::TimeDelta release_delay_;
|
| +
|
| scoped_refptr<base::SingleThreadTaskRunner> app_task_runner_;
|
|
|
| #ifndef NDEBUG
|
| @@ -61,6 +66,7 @@ class AppLifetimeHelper {
|
| ~AppLifetimeHelper();
|
|
|
| scoped_ptr<AppRefCount> CreateAppRefCount();
|
| + scoped_ptr<AppRefCount> CreateAppRefCount(base::TimeDelta release_delay);
|
|
|
| private:
|
| friend AppRefCount;
|
|
|