| Index: content/browser/appcache/appcache_host.h
|
| diff --git a/content/browser/appcache/appcache_host.h b/content/browser/appcache/appcache_host.h
|
| index 31c714b5be4ba898f56955402ec8a0fc99ee0ae6..2cbf435331855bbd2b933e5eb49945a17c530b04 100644
|
| --- a/content/browser/appcache/appcache_host.h
|
| +++ b/content/browser/appcache/appcache_host.h
|
| @@ -13,6 +13,7 @@
|
| #include "base/gtest_prod_util.h"
|
| #include "base/macros.h"
|
| #include "base/memory/ref_counted.h"
|
| +#include "base/memory/weak_ptr.h"
|
| #include "base/observer_list.h"
|
| #include "content/browser/appcache/appcache_group.h"
|
| #include "content/browser/appcache/appcache_service_impl.h"
|
| @@ -194,6 +195,9 @@ class CONTENT_EXPORT AppCacheHost
|
| void PrepareForTransfer();
|
| void CompleteTransfer(int host_id, AppCacheFrontend* frontend);
|
|
|
| + // Returns a weak pointer reference to the host.
|
| + base::WeakPtr<AppCacheHost> GetWeakPtr();
|
| +
|
| private:
|
| friend class content::AppCacheHostTest;
|
| friend class content::AppCacheStorageImplTest;
|
| @@ -353,6 +357,8 @@ class CONTENT_EXPORT AppCacheHost
|
| FRIEND_TEST_ALL_PREFIXES(content::AppCacheHostTest, SelectCacheTwice);
|
| FRIEND_TEST_ALL_PREFIXES(content::AppCacheTest, CleanupUnusedCache);
|
|
|
| + base::WeakPtrFactory<AppCacheHost> weak_factory_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(AppCacheHost);
|
| };
|
|
|
|
|