Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Unified Diff: content/browser/appcache/appcache_host.h

Issue 2956373002: Add support for subresource request loads in AppCache for the network service. (Closed)
Patch Set: Address review comments Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/appcache/appcache_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « no previous file | content/browser/appcache/appcache_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698