| Index: content/browser/appcache/appcache_storage.cc
|
| diff --git a/content/browser/appcache/appcache_storage.cc b/content/browser/appcache/appcache_storage.cc
|
| index 0299ddc1792fa3dd78317a2f1e82109f0d3b61a8..666acd566225c7100a753746cfba95056c196fb4 100644
|
| --- a/content/browser/appcache/appcache_storage.cc
|
| +++ b/content/browser/appcache/appcache_storage.cc
|
| @@ -18,9 +18,11 @@ namespace content {
|
| const int64_t AppCacheStorage::kUnitializedId = -1;
|
|
|
| AppCacheStorage::AppCacheStorage(AppCacheServiceImpl* service)
|
| - : last_cache_id_(kUnitializedId), last_group_id_(kUnitializedId),
|
| - last_response_id_(kUnitializedId), service_(service) {
|
| -}
|
| + : last_cache_id_(kUnitializedId),
|
| + last_group_id_(kUnitializedId),
|
| + last_response_id_(kUnitializedId),
|
| + service_(service),
|
| + weak_factory_(this) {}
|
|
|
| AppCacheStorage::~AppCacheStorage() {
|
| DCHECK(delegate_references_.empty());
|
| @@ -94,6 +96,10 @@ void AppCacheStorage::LoadResponseInfo(const GURL& manifest_url,
|
| info_load->StartIfNeeded();
|
| }
|
|
|
| +base::WeakPtr<AppCacheStorage> AppCacheStorage::GetWeakPtr() {
|
| + return weak_factory_.GetWeakPtr();
|
| +}
|
| +
|
| void AppCacheStorage::UpdateUsageMapAndNotify(const GURL& origin,
|
| int64_t new_usage) {
|
| DCHECK_GE(new_usage, 0);
|
|
|